<input type=checkbox name=chk1 id=chk1 value='Yes'
<?php
if ($_SESSION['last_data']['chk1']=='Yes')
echo "checked";
?> > Check here
<input type=radiobutton name=rad1 id=rad1 value='No'
<?php
if ($_SESSION['last_data']['rad1']=='No')
echo "checked";
?> > No
<select name=sel id=sel >
<option value='v1' <?php echo ($_SESSION['last_data']['sel']=='v1'?"selected":"") ?> > One</option>
<option value='v2' <?php echo ($_SESSION['last_data']['sel']=='v2'?"selected":"") ?> > Two</option>
<option value='v3' <?php echo ($_SESSION['last_data']['sel']=='v3'?"selected":"") ?> > Three</option>
</select>
urtrivedi 276 Nearly a Posting Virtuoso
karthik_ppts commented: useful post +6
urtrivedi 276 Nearly a Posting Virtuoso
urtrivedi 276 Nearly a Posting Virtuoso
urtrivedi 276 Nearly a Posting Virtuoso
urtrivedi 276 Nearly a Posting Virtuoso
urtrivedi 276 Nearly a Posting Virtuoso
urtrivedi 276 Nearly a Posting Virtuoso
AngelicOne commented: Redirecting a form is something new to me using PHP! Thank you very much! +3
urtrivedi 276 Nearly a Posting Virtuoso