Vivid Lust Posted September 3, 2008 Share Posted September 3, 2008 Heres part of the form: <select name="gender"> <option value ="Unknown" name="unknown">Unknown</option> <option value ="Male" name="male">Male</option> <option value ="Female" name="female">Female</option> </select> Heres parts of the php: <?php $gender = $_post['gender']; ?> <?php echo $gender; ?> However nothing is echoed...... Any help please??? This is really frustrating! Link to comment https://forums.phpfreaks.com/topic/122514-not-getting-select-value/ Share on other sites More sharing options...
alin19 Posted September 3, 2008 Share Posted September 3, 2008 check that method="POST" in the html form, and that the action is the php page, and replace $_post with $_POST Link to comment https://forums.phpfreaks.com/topic/122514-not-getting-select-value/#findComment-632569 Share on other sites More sharing options...
Vivid Lust Posted September 3, 2008 Author Share Posted September 3, 2008 works now thanks Just I had it in lower case, not caps the $_POST[] XD Link to comment https://forums.phpfreaks.com/topic/122514-not-getting-select-value/#findComment-632572 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.