im very new to php and im working along and learning to this book called "learning php 5" now im putting up some small scripts on my site to help me learn some of this and i copied the script RIGHT out of the book but im still getting an error, my presumption is maybe i have an old version of php installed on my host.. well heres the script:
[code=php] if ($_POST['user']) {
print "Hello, ";
print $_POST['user'];
print "!";
} else {
print <<<_HTML_
<form method="post" action="$_SERVER[PHP_SELF]">
<input type="text" name="user" value="Type your name here">
<br/>
<input type="submit" value="Make php say hello">
</form>
_HTML_;
}[/code]
and if you go to www.rushinginsomnia.com/phpformhello.php youll see the error page. hopefully one of you guru's can shed some light on this newbie error of mine lol