Adding form values
From: Dave (trow60_at_hotmail.com)
Date: 04/29/04
- Next message: nospam_at_geniegate.com: "Re: Prevent image linking / bandwidth theft?"
- Previous message: Alex: "Log convertion in XML"
- Next in thread: nospam_at_geniegate.com: "Re: Adding form values"
- Reply: nospam_at_geniegate.com: "Re: Adding form values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 23:28:33 GMT
Hey Group,
I have a simple form that I'm trying to have the website viewer fill out,
and have it mailed to me. When the 'Submit' button is pressed on the
webpage, I get the following error:
Parse error: parse error in
/hsphere/local/home/mbudhwar/mildcurries.com/mail.php on line 2
Here's my .php file:
----------------------------------------------------------------------------
-----------
<?php $msg = "Contact Information\n"
$msg .= "$name\n"
$msg .= "$address\n"
$msg .= "$city\n"
$msg .= "$phone\n"
$msg .= "$email\n\n\n"
$msg .= "$menu1-txt\n"
$msg .= "$menu2-txt\n"
$msg .= "$menu3-txt\n"
$msg .= "$menu4-txt\n"
$msg .= "$menu5-txt\n"
mail("email@email.com", "On-line Order", $msg, "From: \"$name\" <$email>")
?>
----------------------------------------------------------------------------
-----------
And here's my .html file (well, the part you need to see - I've taken out
text from the site for confidentiality reasons):
----------------------------------------------------------------------------
-----------
<form action="mail.php" method="post">
Name: <input type="text" name="name" size="15"><br>
Address: <input type="text" name="address" size="25"><br>
City: <input type="text" name="city" size="15"><br>
Phone: <input type="text" name="phone" size="15"><br>
Email: <input type="text" name="email" size="20">
<td><input type="text" name="menu1-txt" size="5"></td>
<td><input type="text" name="menu2-txt" size="5"></td>
<td><input type="text" name="menu3-txt" size="5"></td>
<td><input type="text" name="menu4-txt" size="5"></td>
<td><input type="text" name="menu5-txt" size="5"></td>
<input type=submit name=submit value="ORDER">
</form>
----------------------------------------------------------------------------
-----------
What am I doing wrong?
Thanks a lot!
- Next message: nospam_at_geniegate.com: "Re: Prevent image linking / bandwidth theft?"
- Previous message: Alex: "Log convertion in XML"
- Next in thread: nospam_at_geniegate.com: "Re: Adding form values"
- Reply: nospam_at_geniegate.com: "Re: Adding form values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]