Re: Enter the clueless newbie
| From: | Bogdan Stancescu | Date: | Thu, 28 Feb 2002 03:04:05 +0000 |
| Subject: | Re: Enter the clueless newbie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86508@lists.php.net to get a copy of this message | ||
Are you trying this via HTTP or on the local file?
Bogdan
Bob Rea wrote:
Hi I am just starting to learn php. I'm using Larry Ullman's book in the Visual Quickstart guide series.I have copied out of the book the first example of a form in html and the corresponding php file to display the info. When I click submit in the html page, Konqueror (KDE) asks me where I want to save HandleForm.php. Netscape just does nothing after I hit the submit button. Can someone tell me what I am doing wrong? Here is the code: HtmlForm.html: <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> Email 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> </body> </html> And HandleForm.php: <html> <head> <title>Form Results</title> </head> <body> <?php /*This page receives and handles the data generated by HtmlForm.html*/ print "Your first name is $FirstName.<br>\n"; print "Your last name is $LastName.<br>\n"; print "Your email address is $Email.<br>\n"; print "This is what you had to say: $Comments.<br>\n"; ?> </body> </html> TIA for your help. :)