Jump to content

select problem


ashishrathore

Recommended Posts

  • 3 years later...
Guest FirefoxRocks

You can send the value as a GET request:

<form action="nextpage.php" method="get"><div><select name="whatever"><option value="yes">Yes</option><option value="no">No</option><option value="dontknow">I don't know</option></select><button type='submit'>Go</button></div></form>

On nextpage.php

<?php echo $_GET["whatever"]; ?>

And you'll get the text "yes", "no" or "dontknow" depending on what you selected.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...