Jump to content

Post Selected value of dropdown.


dakke

Recommended Posts

I'm not sure what you mean, but to get value from a dropdown you use the $_POST method, at least I do.

*dropdown layout*<form action="page.php" method="post"><select name="dropdown"><option value="one">First Item</option><option value="two">Second Item</option></select></form>*page.php*<?php$value = $_POST['dropdown'];echo $value;?>

If First Item was selected, "one" will display. If Second Item was selected, "two" will display.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...