Hi All
Here's a question from a brand new user. I am working on an example taken from "Beginning PHP4" that uses a html page to pass information using a METHOD GET to a php page for display. Fairly simple stuff..right?
textarea.html
<html>
<head></head>
<body>
<FORM METHOD=POST ACTION="textarea.php">
What are your favorite websites?
<TEXTAREA NAME="WebSites" COLS="50" ROWS="5">
http://
http://
http://
http://
http://
</TEXTAREA>
<BR>
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>
textarea.php
<html>
<head></head>
<body>
Your favorite websites are:
<?php
echo $WebSites;
?>
</body>
</html>
The result should be a list of the websites entered. However, this is the resulting output:
Your favorite websites are:
Notice: Undefined variable: WebSites in C:\Inetpub\wwwroot\textarea.php on line 7
I am running Windows XP Pro. According to the book, the text box name should be interpreted by the php engine as the variable. Any suggestions?