All I want to do is to design a form to collect info from users and have a php process it but I kept getting this error shouting undefine variable. Please some 1 check my code and tell me what is beyond my glimps
The form
<form action="process.php" method="post">
Your Name: <input type="text" name="name"><br>
E-mail: <input type="text" name = "email"><br>
Location: <input type="text" name = "location"><br>
<input type="submit" value="Submit">
</form>
The Processor
<?php
print "Your name is ". $Name;
print "<br />";
print "You are ". $Age . " years old";
print "<br />";
$old = 25 + $Age;
print "In 25 years you will be " . $old . " years old";
$Name= ("name")
?>
The Errorgotting when fill the form and press submit
Notice: Undefined variable: Name in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lessons\process.php on line 2
Your name is
Notice: Undefined variable: Age in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lessons\process.php on line 4
You are years old
Notice: Undefined variable: Age in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lessons\process.php on line 6
In 25 years you will be 25 years old
Thanks