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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.