This would actually have to be done with JavaScript (which is different on each browser until all browsers adopt a standard). The two biggest ones in the windows world are MSIE and Netscape (obviously) and I think it is similar. Just have something like:
- Code: Select all
<select name="emp_drop_down" onSelect="location.href='view_details.php?id=' + document.formNameHere.emp_drop_down.selectedItem;">
<option value="1">Whoever</option>
<option value="2">Next name</option>
<option value="3">And so on...</option>
</select>
Im not sure if that syntax is 100% right, but that will redirect the user when they select a name in the box to "view_details.php" with the ID in the query string. And have the view_details.php file load the information from the database. Like I said, this is JavaScript, which I dont do much with. Its either onChange or onSelect, but I cant remember which one exactly. Maybe another person here will know the exact syntax, but that is about how it goes. Best of luck!
Will