otuatail Posted June 23, 2015 Share Posted June 23, 2015 div style="width:715px;padding:10px;overflow:hidden"> <div style="width:100px;float:left;"><input type="radio" name="Sort" value="Name" /><b>Name</b></div> <div style="width:100px;float:left;"><input type="radio" name="Sort" value="Surname" /><b>Surname</b></div> <div style="width:100px;float:left;"><input type="radio" name="Sort" value="City" /><b>City</b></div> <div style="width:100px;float:left;"><input type="radio" name="Sort" value="PC" /><b>Post Code</b></div> <div style="width:100px;float:left;"><input type="radio" name="Sort" value="Sex" /><b>Sex</b></div> <div style="width:110px;float:left;"><input type="radio" name="Sort" value="Room" /><b>Room Used</b></div> <div style="width:100px;float:left;"><input type="radio" name="Sort" value="Last" /><b>Last Visit</b></div> echo out on next page echo $_POST['Sort']; exit; I have a page that displays data in columns. I have a Colum header with a radio button site2.desmond-otoole.co.uk/index.php when I submit to the next page and echo out $_POST. NOTHING. I should be able to modify the query from there. Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted June 23, 2015 Share Posted June 23, 2015 Are your radio buttons surrounded with a <form> tag? Is the <form> tag's method set to POST? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted June 23, 2015 Share Posted June 23, 2015 Your HTML has quite a few errors in it which could be why the radio buttons are not being included in your form, even though they are within your <form></form> tags In google chrome the inspector, does not include the radio buttons in your form. 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.