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.
Advertising
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. :)
--
Bob Rea
**************************************************
"On the side of the box, under 'System
Requirements', it said 'Requires Windows
95 or better'. So I installed Linux."
**************************************************
[EMAIL PROTECTED] http://home.earthlink.net/~sfpetard/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php