howdy, i am just learning php, i got a book and have been going through the examples so far everything was going great.
i have come across a problem though.
this is very basic of course. i created a html page with a simple text field and submit button. its supposed to link to a php page that will simply display welcome: (username). thats it. i get an error message saying:
Notice: Undefined variable: user in C:\Xitami\webpages\php\ex9.php on line 10
well, here is the code from the html page:
<form action="ex9.php" method="GET">
<input type="text" name="user">
<br>
<input type="submit" value="push me">
</form>
here is the php:
<body>
<?php
print "<b>welcome $user</b><p>\n\n";
?>
</body>
pretty basic, which is why im so aggravated at not being able to get this to work.
when the php page loads i can see in the url address field that it is receiving the 'user' variable.
http://localhost/php/ex9.php?user=joe
thanks to anybody that can help point me in the right direction.