two things:
1) when i goto my homepage i have to put http://peatson.co.uk/index.php? why this.
2)trying to do a form which then goes to a handleform.php and get this error:
Notice: Undefined variable: FirstName in d:\websites\peatson.co.uk\wwwRoot\Handleform.php on line 10
Notice: Undefined variable: LastName in d:\websites\peatson.co.uk\wwwRoot\Handleform.php on line 10
Hello .
Notice: Undefined variable: Email in d:\websites\peatson.co.uk\wwwRoot\Handleform.php on line 11
My Code on My index.php:
<?php
print ("<B><CENTER><FONT COLOR=\"BLUE\"><H1>Welcome to Peatson.co.uk</CENTER></B></FONT></H1>\n");
print ("<FONT COLOR=\"BLUE\">Login</FONT>\n");
?>
<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>
Email Address <INPUT TYPE=TEXT NAME="Email" SIZE=40><BR>
<INPUT TYPE=SUBMIT NAME="SUBMIT" VALUE="Submit!">
<INPUT TYPE=RESET NAME=RESET VALUE="Reset">.
</FORM>
My Code on my handleform.php
<?PHP
/ This pages receives and handles the data generated by "index.php". /
print "Hello $FirstName $LastName.<BR>\n";
print "$Email.<BR>\n";
print ("<B><CENTER><FONT COLOR=\"BLUE\"><H1>Welcome to Peatson.co.uk</CENTER></B></FONT></H1>\n");
?>