SOLVED | variable errors i dont understand
Posted: Thu Sep 08, 2005 5:44 am
hi im pretty new here and im also new in php programming. i would just like to as about an error im receiving in php.
btw, ive got php 5.0.4 running under apache 1.3.33
here's the problem:
it's just a simple code im using to test some things..
HTML CODE: info.html
PHP CODE: HandleForm.php
given that info.html will be sending the inputted information and HandleForm.php will be showing the outputs in the screen. For some reason though, im getting this error:
Notice: Undefined variable: FirstName in c:\Program Files\Apache Group\Apache\htdocs\mylessons\HandleForm.php on line 12
Your friggin name is ?
Notice: Undefined variable: Email in c:\Program Files\Apache Group\Apache\htdocs\mylessons\HandleForm.php on line 13
Your friggin email add is .
Notice: Undefined variable: Comments in c:\Program Files\Apache Group\Apache\htdocs\mylessons\HandleForm.php on line 14
And your tryin to tell me this:
am i doing something wrong? please help me out thanks!
btw, ive got php 5.0.4 running under apache 1.3.33
here's the problem:
it's just a simple code im using to test some things..
HTML CODE: info.html
Code: Select all
<html>
<head>
<title>HTML Form</title>
</head>
<body>
<form action = "HandleForm.php" method = post>
First Name <input type = text name = "FirstName" id = "FirstName" size = 20> <br>
Last Name <input type = text name = "LastName" id = "LastName" size = 20> <br>
E-mail Address <input type = text name = "Email" id = "Email" size = 20> <br>
Comments <textarea name = "Comments" id = "Comments" rows = 5 col = 20> </textarea> <br>
<input type = submit name = "submit" value = "submit">
</form>
</body>
</html>Code: Select all
<?php
print "Your friggin name is $FirstName? <br>";
print "Your friggin email add is $Email. <br>";
print "And your tryin to tell me this: <br> $Comments <br>";
?>Notice: Undefined variable: FirstName in c:\Program Files\Apache Group\Apache\htdocs\mylessons\HandleForm.php on line 12
Your friggin name is ?
Notice: Undefined variable: Email in c:\Program Files\Apache Group\Apache\htdocs\mylessons\HandleForm.php on line 13
Your friggin email add is .
Notice: Undefined variable: Comments in c:\Program Files\Apache Group\Apache\htdocs\mylessons\HandleForm.php on line 14
And your tryin to tell me this:
am i doing something wrong? please help me out thanks!