Hello All, I am running into difficulty with the variables being sent to a PHP script not being seen. Here is the code from the examples I have been trying from WWW.MYSQL.COM:
<FORM ACTION="<?php echo($PHP_SELF); ?>" METHOD=POST><P>Enter the new author:<BR>Name: <INPUT TYPE=TEXT NAME="name" SIZE=20MAXLENGTH=100><BR>eMail: <INPUT TYPE=TEXT NAME="email" SIZE=20MAXLENGTH=100><BR><INPUT TYPE=SUBMIT NAME="submit" VALUE="SUBMIT"></P></FORM>
the filename for form action is NEWAUTHOR.PHP, and it is getting passed 3 variables -- name, email, and submit. If I set the METHOD=GET, I can see the web browser include the variables:
newauthor.php?name=Jeff&email=jeff_kraus@3com.com&submit=SUBMIT
But in the beginning of the script I placed ECHO statements to make sure the script is receiving the variables and I can see that they are not because the echo's print nothing:
<?php
echo("SUBMIT = $submit");
echo("VARS = $name , $email");
Can anyone tell me why the PHP script is not receiving the Variables from the HTML code? Thanks