Undefined variable

From: Date: Sun, 15 Sep 2002 11:20:33 +0000
Subject: Undefined variable
Groups: php.general php.windows 
Request: Send a blank email to php-general+get-116431@lists.php.net to get a copy of this message
I am a beginner of PHP, and need help on PHP variable issue: I made an HTML form: ... <FORM ACTION="HandleForm.php" METHOD=POST> First Name <INPUT TYPE=TEXT NAME="FirstName" SIZE=20><BR> Last Name <INPUT TYPE=TEXT NAME="LastName" SIZE=40><BR> E-mail Address <INPUT TYPE=TEXT NAME="Email" SIZE=60><BR> Comments <TEXTAREA NAME="Comments" ROWS=5 COLS=40></TEXTAREA><BR> <INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="Submit!"> <INPUT TYPE=RESET NAME=RESET VALUE="Reset"> </FORM> ... and I try to use a PHP page to retrieve data out: ... <BODY> <?php /* This page receives and handles the data generated by "form.html". */ print "Your first name is $FirstName.<BR>\n"; print "Your last name is $LastName.<BR>\n"; print "Your E-mail addres is $Email.<BR>\n"; print "This is what you had to say:<BR>\n $Comments<BR>\n"; ?> </BODY> ... I end up getting error: Notice: Undefined variable: FirstName in \HandleForm.php on line 7 Your first name is . Notice: Undefined variable: LastName in \HandleForm.php on line 8 Your last name is . Notice: Undefined variable: Email in \HandleForm.php on line 9 Your E-mail addres is . Notice: Undefined variable: Comments in \HandleForm.php on line 10 This is what you had to say: Is it something wrong with my coding, IIS setup or PHP installation?

« previous php.general (#116431) next »