I'm going through the wrox press book titled "beginning php4", and I can't get several exercises working is it the code or is it me? I have an html page the "gets" a php page. Here's the html code (textarea.html):
<head>
<title>Untitled</title>
</head>
<body>
<form method=get action="textarea.php">
What are your Favorite web sites?
<textarea name="WebSites" cols="50" rows="5">
http://
http://
http://
http://
</textarea>
<br>
<br>
<input type=submit>
</form>
</body>
Here's the php code (textarea.php):
<head>
<title>Untitled</title>
</head>
<body>
Your favorite web sites are:
<?php
echo $WebSites;
?>
</body>
When I submit data from the html page, I get the text (Your foavorite web sites are🙂 on textarea.php, but the data in the textarea doesn't carry over. However, the data is in the URL.
Any ideas?