jeff5656 Posted July 26, 2009 Share Posted July 26, 2009 In the form a user can click one of 2 submit buttons: <input type="submit" name="Submit-pool" value="Add Patient to submitted pool" onClick="return check('newsubmit', this.name)"> <input type="submit" name="Submit" value="Add Patient to upcoming conference" onClick="return check('newsubmit', this.name)"> But when I select the submit-pool button and echo it, there is no value: echo "submit is " .$_POST['submit-pool']; <<-----this echos blank if(isset($_POST['submit-pool'])){ $signoff_status = 'p'; $backto = 'displaypotential.php'; } else { $signoff_status = 'a'; $backto = 'displayactive.php'; } Quote Link to comment https://forums.phpfreaks.com/topic/167493-solved-the-echo-is-blank-from-a-name/ Share on other sites More sharing options...
Alex Posted July 26, 2009 Share Posted July 26, 2009 Well, first off in the form it says 'Submit-pool' and in the code you're using $_POST['submit-pool']. It is case-sensitive. Quote Link to comment https://forums.phpfreaks.com/topic/167493-solved-the-echo-is-blank-from-a-name/#findComment-883204 Share on other sites More sharing options...
jeff5656 Posted July 26, 2009 Author Share Posted July 26, 2009 case-sensitive Thank you! That worked. I never would have figured that out :-) Quote Link to comment https://forums.phpfreaks.com/topic/167493-solved-the-echo-is-blank-from-a-name/#findComment-883205 Share on other sites More sharing options...
Alex Posted July 26, 2009 Share Posted July 26, 2009 Click the 'top solved' button in the bottom left of the page please. Quote Link to comment https://forums.phpfreaks.com/topic/167493-solved-the-echo-is-blank-from-a-name/#findComment-883206 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.