As PHP is normally installed, your pages should work, however, when I was getting started I had this same problem. I was working on the windows version, and while I had the windows browser plainly showing the two files, "double clicking" the first page produced the first page in a browser, just like I expected. Filling in the information and pressing submit produced the second page with the value in the URL, but no PHP substitution occurred.
The problem was that I was invoking the files thru the browsers "file" method and not thru the apache server where PHP was implemented. Try using http://localhost/page1.php, and you will be using the browsers server links. See if that does it. Warren Vail [EMAIL PROTECTED] -----Original Message----- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 11, 2003 9:42 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Using the GET Method 01112003 2132 CST Im working on learning PHP4 by reading Beginning PHP 4, Wrox Press. Chapter 3, page 76. Im working with a form field sending data via the GET method. On the first page, you fill in a text field and hit send. That data is sent via the URL. I can see it in the URL, on the next page. The page will not show the data in the variable spot. The Code: Page One <html><head><title></title></head> <body> <form method=get action="text.php> Who is your favorite author? <input name="author" type="text"> <br> <input type=submit> </form> </body></html> Page Two - text.php <html><head><title></title></head> <body> Your favorite author is: <?php echo $author; ?> </body></html> Now, I know PHP is case sensitive and I have been sure to check the $variable in the code. I have worked through some other pages in this book and I downloaded the documentation from the wrox website. Their code is exactly as the book and my own. Im stumbed. Anybody read this book? Can anybody see something wrong? Wade -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php