I am working on a digital employment application for my company using HTML and processing with PHP.
The form is defined by:<form method="post" action="./php/post.php" name="empapp">
and the text field is defined by: <input size="13" name="canyoufeelityeah">
My PHP page contains the following lines: `print_r( $_POST); print_r( $_POST["canyoufeelityeah"]);
if (($_POST["canyoufeelityeah"] = ' ') or ($_POST["initials2"] = ' ') or ($_POST["initials3"] = ' ') or ($_POST["initials4"] = ' ') or ($_POST["signature"] = ' '))
{
echo $_POST["canyoufeelityeah"]."|".$_POST["initials2"]."|".$_POST["initials3"]."|".$_POST["initials4"]."|".$_POST["signature"]."|";
echo "You must initial each of the 4 blocks and sign your name at the bottom. <br />You will be redirected to your application in 15 seconds...";
// echo "<script>setTimeout(\"window.history.back()\", 1500)</script>";
}`
The printing of all the $_POST variables shows the variable "canyoufeelityeah" with the value, but this section of code always pulls a blank.
Can anyone help out with this? I have approximately 30 other variables that are being passed, but this one is the only one giving me any problems, and I am not sure why.
Thanks!
Aucun commentaire:
Enregistrer un commentaire