Newbie here
Hi. I just started teaching myself PHP over the weekend, and I've hit a wall on simple HTML forms. Basically, what I'm doing is having a form ask the user to put in their name (in name.html), and then pass it along to name.php, where it will say hello to them.
The HTML code (I'm replacing regular < and > brackets with [ and ]) is:
[form action="name.php" method=post]
My name is: [input type="text" name="name"]
[input type="submit" name="submit" value="Say hi to me!"]
[/form]
The resulting name.php page (again, < and > are [ and ]):
[html]
[head]
[title]Hello [?php print ("$name"); ?]![/title]
[/head]
[body]
[p]Hi [?php print("$name");?]!
[/body]
[/html]
I apologize for asking such a newbie question, but it's been driving me nuts for far longer than it should've. I'm using this WebMonkey tutorial for forms along with PHP 4 Bible, by Tim Converse and Joyce Park. In case folks are wondering, both name.html and name.php are in the root of my test server, which has done everything else PHP-wise correctly (it's WinXP home edition with Apache 1.3.26, using PHP 4.2.3).
Thanks in advance!
The HTML code (I'm replacing regular < and > brackets with [ and ]) is:
[form action="name.php" method=post]
My name is: [input type="text" name="name"]
[input type="submit" name="submit" value="Say hi to me!"]
[/form]
The resulting name.php page (again, < and > are [ and ]):
[html]
[head]
[title]Hello [?php print ("$name"); ?]![/title]
[/head]
[body]
[p]Hi [?php print("$name");?]!
[/body]
[/html]
I apologize for asking such a newbie question, but it's been driving me nuts for far longer than it should've. I'm using this WebMonkey tutorial for forms along with PHP 4 Bible, by Tim Converse and Joyce Park. In case folks are wondering, both name.html and name.php are in the root of my test server, which has done everything else PHP-wise correctly (it's WinXP home edition with Apache 1.3.26, using PHP 4.2.3).
Thanks in advance!
