Hello !
I am a beginner as far as PHP is concerned and bought a book in order to learn it.
Now I have to face the following problem:
I wrote this html code:
...
...
<FORM ACTION="HandleForm.php" METHOD=POST>
First Name <INPUT TYPE=TEXT NAME="FirstName" SIZE=20><BR>
...
</FORM>
...
I saved this as "form.html" !
Afterwards I wrote the "HandleForm.php":
...
...
<?php
print ("Your first name is $FirstName.<BR>\n");
...
?>
...
According to my book, the file "HandleForm.php" should be able to read the text, which the user has entered and which was sent to it by a submit-button, if you put a $ before the name of the element you have used in the file "form.html" !
But when trying it out I just get the following error-message:
"Undefined Variable: FirstName in c:\....\htdocs\HandleForm.php"...
Could anybody help me, please ????
Could anyone help me in solving a problem with variables ???
Moderator: General Moderators
-
lucyinthesky
- Forum Newbie
- Posts: 2
- Joined: Tue Dec 17, 2002 12:58 pm
-
lucyinthesky
- Forum Newbie
- Posts: 2
- Joined: Tue Dec 17, 2002 12:58 pm