I was playin with some php I was making a simple php form that when filled out sends you to the next page and says what you filled in but it only does half of the process. Could someone please help me.
This is the code for me html form.
form.html
This is the php file that reseves the info and lays it out for the person to see what they wrote:
HandleForm.php
If anyone could please figure the problem out I would be very appreciative. Here is the url to the file if you would like to try it out your self: http://www.cr3ative.frih.net/form.html
Thanks for any help you can provide.
This is the code for me html form.
form.html
| Code: |
| <HTML>
<HEAD> <TITLE>HTML Form</TITLE> </HEAD> <BODY> <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!"> </FORM> </BODY> </HTML> |
This is the php file that reseves the info and lays it out for the person to see what they wrote:
HandleForm.php
| Code: |
| <HTML>
<HEAD> <TITLE>Form Results</TITLE> <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 address is $Email.<BR>\n"; print "This is what you had to say: <BR>\n $Comments<BR>\n"; ?> </BODY> </HTML> |
If anyone could please figure the problem out I would be very appreciative. Here is the url to the file if you would like to try it out your self: http://www.cr3ative.frih.net/form.html
Thanks for any help you can provide.
