I have two tables, one is for the user, one for department. In order to add a new person to the faculty list, the editor fills out a form which includes this select box in which he selects the department from a drop down box, and it inserts the department id (deptid) into the user table. I then list all of the faculty with a link to edit their info. When the link is clicked the form is shown with all the previous data entered populating the correct fields with the exception of this select field, which is still on the default option. Any ideas?
<SELECT NAME="deptid" SIZE="1"><?
while ($myrow2 = mysql_fetch_array($result2))
{
echo "<option value=".$myrow2["deptid"].">";
echo $myrow2["department"];
echo "</option>";
}
?>
</select>
This script is designed to ins