ashishrathore Posted January 17, 2006 Share Posted January 17, 2006 hi,i am having a problem using dropdown input.after selecting a value from dropdown, i want to save that value and pass it to the next page.-ashish Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted July 31, 2009 Share Posted July 31, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now