Need to capture 3 fields from select input dropdown box
Posted: Mon Mar 16, 2009 10:08 am
I have created a dropdown box that lists first and last name (concatenated). When the user selects a name, I need to capture the value of 3 fields: runnerid (which I am able to get), first name, and last name (all separately). Is there a way to do this?
Code: Select all
<select name='runnerselect'><option>See Who's In The Race</option></p>";
while ($result_row = mysql_fetch_array($result, MYSQL_ASSOC)) {
<option value=" .$result_row['runnerid'] . ">" . $result_row['firstname'] . " " . $result_row['lastname'] . "</option>"; }
</select>;