I have been able to get an email once the data was submitted...
Now I am trying to add another box to enter data and I get an error....
Please help!
The Form is here!
This is the error message I keep getting!
Printable View
I have been able to get an email once the data was submitted...
Now I am trying to add another box to enter data and I get an error....
Please help!
The Form is here!
This is the error message I keep getting!
you know, just giving us the HTML form and the error message is not going to help.
you need to post some from your sendmail.php script, preferably the lines surrounding the error (line 8).. so post the first 16 lines of the script and someone can probably help you.
I knew I was missing something....Sorry
This is the html document!
Here is the sendmail.php document:Code:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Feedback Form</title>
<link rel="stylesheet" href="feedback.css" type="text/css" />
</head>
<body>
<form method="post" action="sendmail.php">
<p>Name:
<input name="name" type="text" id="name" />
</p>
<p>Email:
<input name="email2" type="text" />
<br />
Message:<br />
<textarea name="message" rows="20" cols="60">
</textarea>
<br />
<input type="submit" />
</p>
</form>
</body>
</html>
Code:<?
$email = $_REQUEST['email'] ;
$name = $_REQUEST['name'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Feedback Form Results",
$message, "From: $email" );
$name, "From: $email" );
header( "Location: http://robbyzworld.com/personal/myMLB/DH/thankyou.html" );
?>
you have an extra line that shouldn't be there. try this:
you have a terribly written script from my standpoint (no error validation, etc), but.. i guess it works.PHP Code:<?
$email = $_REQUEST['email'] ;
$name = $_REQUEST['name'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://robbyzworld.com/personal/myMLB/DH/thankyou.html" );
?>
Hey buddy ok, it fixed that problem but what I wanted to have happen was in the email that I got the details that were filled out to all be filled in the email.
Right now all I get is the message text.
Quote:
Originally Posted by kows
uhh.. add the rest of the stuff to the message then..?
then call mail() with $themessage instead of $message.PHP Code:$themessage = "this message has been sent from something something something
their email: $email
their name: $name
their message:
$message
this message was sent on " . date("Y-m-d @ h:i:s a") . ".";