I just started reading this book on php and im having trouble with one of its' examples. Here is the code:
FIRST PAGE
SECOND PAGECode:<HTML> <HEAD></HEAD> <BODY> <FORM METHOD="GET" ACTION="text.php"> Who is your favorite author? <INPUT NAME="Author" TYPE="TEXT"> <BR> <BR> <INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML>
When I hit the "Submit Query" button on the first page the php page tells me that the variable Author is undefined. The variables are exactly the same between the two pages, i don't know what else could be going wrong. Any help would be great.Code:<HTML> <HEAD></HEAD> <BODY> Your favorite author is: <?php echo $Author; ?> </BODY> </HTML>




Reply With Quote