Jump to content
Larry Ullman's Book Forums

Recommended Posts

If your select menu is named "charlie", then the selected value will be in $_POST['charlie'], assuming the form uses the POST method. The actual value of the selection comes from the value attribute, not the label between the option tags.

Link to comment
Share on other sites

Yes, and just to add a little, you will likely use the same PHP array to create the select list as you will to check the value posted to the server, thus making it easy to confirm the value selected, and the string or whatever that corresponds to that value.

Link to comment
Share on other sites

 Share

×
×
  • Create New...