i have a simple test form and a php script that handles it. the form
is not passing the data to the script, so i end up with an empty html
file on submit.
the form's setup is like this -
<FORM ACTION="HandleF orm.php" METHOD=POST>
<TABLE>
<TR>
<TD>First Name:</TD>
<TD><INPUT TYPE="text" NAME="first" SIZE=20></TD>
</TR>
<TR>
<TD>Last Name:</TD>
<TD><INPUT TYPE="text" NAME="last" SIZE=20></TD>
</TR>
<TR>
<TD>Email Address:</TD>
<TD><INPUT TYPE="text" NAME="email" SIZE=30></TD>
</TR>
<TR>
<TD>Comments: </TD>
<TD>
<TEXTAREA NAME="comments" ROWS=5 COLS=40></TEXTAREA>
</TD>
</TR>
<TR>
<TD>
<CENTER>
<INPUT TYPE="submit" NAME="submit" VALUE="Submit">
</CENTER>
</TD>
</TR>
</TABLE>
and the script -
<HTML>
<HEAD>
<TITLE>Form Results</TITLE>
</HEAD>
<BODY>
<?php
print ("Your first name is $first.<BR>\n") ;
print ("Your last name is $last.<BR>\n");
print ("Your Email is <A
HREF=\"mailto:$ email\">$email</A>.<BR>\n");
print ("This is what you had to
say:<BR><BR>\n< I>$comments</I><BR>\n");
?>
</BODY>
</HTML>
i'm sort of new at this, so comments would be appreciated.
TIA,
andrew
is not passing the data to the script, so i end up with an empty html
file on submit.
the form's setup is like this -
<FORM ACTION="HandleF orm.php" METHOD=POST>
<TABLE>
<TR>
<TD>First Name:</TD>
<TD><INPUT TYPE="text" NAME="first" SIZE=20></TD>
</TR>
<TR>
<TD>Last Name:</TD>
<TD><INPUT TYPE="text" NAME="last" SIZE=20></TD>
</TR>
<TR>
<TD>Email Address:</TD>
<TD><INPUT TYPE="text" NAME="email" SIZE=30></TD>
</TR>
<TR>
<TD>Comments: </TD>
<TD>
<TEXTAREA NAME="comments" ROWS=5 COLS=40></TEXTAREA>
</TD>
</TR>
<TR>
<TD>
<CENTER>
<INPUT TYPE="submit" NAME="submit" VALUE="Submit">
</CENTER>
</TD>
</TR>
</TABLE>
and the script -
<HTML>
<HEAD>
<TITLE>Form Results</TITLE>
</HEAD>
<BODY>
<?php
print ("Your first name is $first.<BR>\n") ;
print ("Your last name is $last.<BR>\n");
print ("Your Email is <A
HREF=\"mailto:$ email\">$email</A>.<BR>\n");
print ("This is what you had to
say:<BR><BR>\n< I>$comments</I><BR>\n");
?>
</BODY>
</HTML>
i'm sort of new at this, so comments would be appreciated.
TIA,
andrew
Comment