Jump to content

[SOLVED] the echo is blank from a <input> name


jeff5656

Recommended Posts

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';
}

Link to comment
https://forums.phpfreaks.com/topic/167493-solved-the-echo-is-blank-from-a-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.