Need to capture 3 fields from select input dropdown box

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
katkat
Forum Newbie
Posts: 23
Joined: Tue Mar 03, 2009 9:50 pm

Need to capture 3 fields from select input dropdown box

Post by katkat »

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>;
Post Reply