PHP以[关闭]的形式显示POST数据

How does one take an html post and pass variables back to an html form? I have a script which runs but when PHP responds to post the form data disappears on the reload which is not what I want. TIA

after the page reloads you can get the variables using

<? if (isset($_POST['inputname']) { $myvariable = $_POST['inputname']; }else{ $myvariable = ""; } ?>

after that you can insert them as input values so values will still be there after POST

<input type="text" value="<? echo $myvariable; ?>">