Simple HTML Form Problem.
Posted: Sat Sep 07, 2002 4:59 am
This is Test.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 this is text.php
--------------------------------------------
<HTML>
<HEAD></HEAD>
<BODY>
Your favorite author is:
<?php
echo $Author;
?>
</BODY>
</HTML>
--------------------------------------------
When i run this code, i get Undefined variable Author in text.php. Do anyone knows why?
thanks
-Kenny.
---------------------------------------------
<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 this is text.php
--------------------------------------------
<HTML>
<HEAD></HEAD>
<BODY>
Your favorite author is:
<?php
echo $Author;
?>
</BODY>
</HTML>
--------------------------------------------
When i run this code, i get Undefined variable Author in text.php. Do anyone knows why?
thanks
-Kenny.