suttercain Posted March 11, 2007 Share Posted March 11, 2007 Hello and hope eveyone is having a good Saturday night. My issue, I have constructed a drop down menu, but when I hit submit, it reloads the HTML page and doesn't go to the php page with the switch statement. Can someone assist? HTML PAGE: <center><b>---SELECT YOUR HEIGHT---</b></center><br /> <form ="lab_1d.php" method="post"> <select name="select"> <option value="5ft0">5 Foot 0</option> <option value="5ft2">5 Foot 2</option> <option value="5ft4">5 Foot 4</option> <option value="5ft6">5 Foot 6</option> <option value="5ft8">5 Foot 8</option> <option value="5ft10">5 Foot 10</option> </select> <input type="submit" name="height" value="Submit" /> </form> Link to comment https://forums.phpfreaks.com/topic/42191-solved-basic-menu-form-and-submit-issue/ Share on other sites More sharing options...
interpim Posted March 11, 2007 Share Posted March 11, 2007 change <form ="lab_1d.php" method="post"> to this <form action="lab_1d.php" method="post"> Link to comment https://forums.phpfreaks.com/topic/42191-solved-basic-menu-form-and-submit-issue/#findComment-204667 Share on other sites More sharing options...
suttercain Posted March 11, 2007 Author Share Posted March 11, 2007 Doh... thanks. It's always the simple things that mess me up. Link to comment https://forums.phpfreaks.com/topic/42191-solved-basic-menu-form-and-submit-issue/#findComment-204668 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.