I get the following when trying to use form variables. I have only just started on PHP, so I assume it is something simple I have missed...
Any help would be very gratefully received.
Regards, David
Output -
Your favourite author is:
Notice: Undefined variable: Author in C:\Inetpub\wwwroot\WOSIIS\Guest\text.php on line 10
text.htm -
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="get" action="text.php">
Who is your favourite author?
<INPUT NAME="Author" type="text"
<BR>
<BR>
<INPUT type="submit"
</form>
</body>
</html>
text.php -
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Your favourite author is:
<?php
echo $Author;
?>
</body>
</html>