hi, Hopefully there will be a simple answer to this!
Basically ive been able to retrieve data from a data base so user may be able to edit their details, the problem is ! Im unable to call the values back into my drop down menu form objects! The script works but data will only be outputted into the textfield objects
snippets of code, which is relevant
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$lname = $row['lastName'];
$fname = $row['firstName'];
$country = $row['country'];
}
output to form objects
A.) WORKS
<td align="right">First Name</td>
<td>
<input class="txtbox" type="text" name="lastName"value="<?php echo $fname ?>"size="40" maxlength="40">
</td>
B.) drop down menu
<td height="28" align=right>Country</td>
<td>
<select class="txtbox" name="opt_country"value="<?php echo $country ?>" size="1">
<option>England</option>
<option>US</option>
<option>Germany</option>
<option>france</option>
</select>
</td>
conclusion- can I get the drop down menu value to be the value saved within the db table.
thank you in advance