Forum Moderators: coopster
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<input type="text" name="aName" value="<?php echo $_POST['aName'];?>"/>
<input type="submit"/>
</form>
...would cause the "aName" field to be sticky. But what about radio buttons, check boxes, select lists, etc.?
John
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<p><input type="text" name="aName" value="<?php echo $_POST['aName'];?>"/>
<p>1<input type="radio" name="arad" value="1"<? if ($_POST['arad'] == 1) echo " checked";?>>
<br>2 <input type="radio" name="arad" value="2"<? if ($_POST['arad'] == 2) echo " checked";?>>
<br>3 <input type="radio" name="arad" value="3"<? if ($_POST['arad'] == 3) echo " checked";?>>
<p><input type="submit"/>
</form>