hi
i have a form submitter that - when the user submits, validates the data submitted. if there are errors, it displays the same form with errors marked, and the info the user typed in preserved in the textboxes of the form. i'm trying to get the form to auto select items the user chose in a drop down list.
here's the loop i'm trying to use
<?
if ($intenrmo = "Fall")
{
echo "<tr>
<td>Intended Enrollment Month:</td>
<td valign=top>
<select name=intenrmo size=1>
<OPTION selected value=Fall>September - Journalism or IMC</OPTION>
<OPTION value=Winter>January - Journalism only</OPTION>
<OPTION value=Summer>June - Journalism only</OPTION>
</select></tr>";
}
elseif ($intenrmo = "Winter")
{
echo "<tr>
<td>Intended Enrollment Month:</td>
<td valign=top>
<select name=intenrmo size=1>
<OPTION value=Fall>September - Journalism or IMC</OPTION>
<OPTION selected value=Winter>January - Journalism only</OPTION>
<OPTION value=Summer>June - Journalism only</OPTION>
</select></tr>";
}
elseif ($intenrmo = "Summer")
{
echo "<tr>
<td>Intended Enrollment Month:</td>
<td valign=top>
<select name=intenrmo size=1>
<OPTION value=Fall>September - Journalism or IMC</OPTION>
<OPTION value=Winter>January - Journalism only</OPTION>
<OPTION selected value=Summer>June - Journalism only</OPTION>
</select></tr>";
}
?>
it's not selecting the right option, it always selects the first choice in the if else loop. can someone tell me what i'm doing wrong?
thanks
p.