Ok
i have a form in which i pull data into. it works fine...my question is
I have a field in the form that is a drop down menu:
lets says
State: NY, NJ, MA
are the 3 dropdown option
Im pulling the user data from the database, so lets say John Doe, his record is MA.
how to i code the form to output that State should have MA the selected option??
the text boxes are easy:
<input name=\"weight\" type=\"text\" id=\"weight\"
value=\" ".
$row_user['weight'] ."\" size=\"5\" class=\"form_buttons\">
but how do i do the drop downs?
<select name=\"state\" id=\"state\" class=\"form_buttons\">
<option value=\"NY\">NY</option>
<option value=\"\NJ">NJ</option>
<option value=\"MA\">MA</option>
</select>
i want it to say:
<option selected value=\"MA\">MA</option>
Hope i made sense.
TIA