On PHP Submission Refresh, drop-down values are maintained.?

Bleto

New member
So, I see a lot of people talking about writing functions for keeping the drop down menu, but this is what I have:

for($i=0;$i<$namecount;$i++){
$thisPage .= "<span class='style1'>Person ".
($i+1)."</span><table style='border: thin silver inset; width:100%;'>

<tr><td><input type='text' name='lname[$i]' value='$lname[$i]'></td>
<td align='center' valign='bottom'><select name='suffix[$i]' value='$suffix[$i]' selected='selected'
/><option>Select</option><option>None</option><option>Jr.</option><option>Sr.</option><optio
n>Esq.</option><option>I</option><option>II</option><option>III</option><option>IV</option><
/select>
</td>

AFTER an attempt to submit the page, it runs through a verification loop. If verification fails, it re-displays the same page. All other values I can maintain (texts, radios, etc.) But not the drop down.

Help.
 
Back
Top