yopie
08-02-2003, 03:12 PM
Hi
I have these PHP code:
text.html
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="text.php">
Who is your favourite author?
<INPUT NAME="Author" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
and text.php:
<HTML>
<HEAD></HEAD>
<BODY>
Your favorite author is:
<?php
echo $Author;
?>
</BODY>
</HTML>
I saved the file at /usr/www/html
When I run text.html on my browser and enter at text box with Author name, the result always empty.
The result at browser:
Your favorite author is: (empty)
the script should display the name the author that I type.
Anyone see any typing mistake on my code, I copy exacly from text book!
I'm using RH 9, Mozilla 1.4, PHP ver 4.2.2. Httpd server is also running on the system.
Any clue?
Thanks
I have these PHP code:
text.html
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="text.php">
Who is your favourite author?
<INPUT NAME="Author" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
and text.php:
<HTML>
<HEAD></HEAD>
<BODY>
Your favorite author is:
<?php
echo $Author;
?>
</BODY>
</HTML>
I saved the file at /usr/www/html
When I run text.html on my browser and enter at text box with Author name, the result always empty.
The result at browser:
Your favorite author is: (empty)
the script should display the name the author that I type.
Anyone see any typing mistake on my code, I copy exacly from text book!
I'm using RH 9, Mozilla 1.4, PHP ver 4.2.2. Httpd server is also running on the system.
Any clue?
Thanks