cwncool Posted February 1, 2007 Share Posted February 1, 2007 I have a form (just a test for my larger form), with this as the html form <html> <body> <form action="test.php" method="post"> <select name="test"><option>Paypal</option></select> <input type="submit"> </form> </body> </html> and this is the php form that should display "Paypal" when submit is pressed. <?php $var = $_POST['test']; echo $var; ?> It doesn't show that though. It will display text inputs, but it won't display my drop down box info. Can someone please help me? This should probably be really easy. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 1, 2007 Share Posted February 1, 2007 do print_r($_POST) at the top to see all post vars. Try changing the option to this: <option value="Paypal">Paypal</option> Quote Link to comment Share on other sites More sharing options...
cwncool Posted February 1, 2007 Author Share Posted February 1, 2007 Oooh. Lol. I had tried that at first, but I tried it without the name on the <option> tag also. I guess I need both That makes sense though! Thanx! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.