drop down menu selection return to the first item after submission
i've created a search using drop down menu.
Menu items are coming from a data source (record set) but after clicking submit button the section goes to the first item in the drop down menu. how can i keep the selection to the selected item?
Here is the code, i'm not aware where to add the eco selected,
<option value="<?php echo $row_RSspeciality['id']?>"<?php if($HTTP_POST_VARS['id'] == $row_RSspeciality['id']){ echo "SELECTED"; }?>><?php echo $row_RSspeciality['Speciality']?></option>
I have another question, how can i add an (All) item to the drop down menu, which enable the user to search in all the dept.?
