Click to See Complete Forum and Search --> : PHP help please


nawkternalwonde
12-10-2003, 01:46 PM
I am just strating to teach myself PHP, and I am having a hard time getting this simple form to work. Can someone take a look, and let me know what I am doing wrong? thank you.


HTML form:


<html>

<head>

<title>Practice Page</title>

<style type="text/css">

p {color: white;}
body {background-color: purple; font-family: times;}
p.big {font size: 200%; color: #11f111; margin-left: 6cm; margin-right: 4cm}
p.margin {margin-left: 4cm; margin-right: 6cm;}

</style>



</head>

<body>

<p class="big">My first PHP script<sup>2</sup></p>

<form action="handleform.php" method=post>

First Name <br /> <INPUT TYPE=TEXT NAME="FirstName" SIZE=20>

<br />

Last Name <br /><input type=text name="LastName" size=40>

<br />

Email Address <br /><input type="text" name="Email" size="60"

<br />
<br />

Comments <br /><textarea name="Comments" rows="5" cols="40"></textarea>

<br />

<input type="submit" name="submit" value="submit!">

</form>

<br />
<br />

</body>
</html>

PHP script:

<html>

<head>

<title>handelform.php</title>

</head>

<body>

<?php
/* this form handles info from form.htm */

print "Your first name is $FirstName.<br />\n";
print "Your last name is $LastName.<br />\n";
print "Your email is $Email.<br />\n";
print "This is what you had to say:<br />\n
$Comments<br />\n";

?>

</body>
</html>