> Post the full script
Here's the whole enchlada. To duplicate the problem: go to
http://www.clearpointsystems.com/beta/contact.php and enter anything in the
Email Address form, and the Message form, and click send. You *should* be
taken to the "Thank You" page at
http://clearpointsystems.com/beta/thankyou.html. Now go back to contact.php
and click on the Send button *without entering anything* in either form.
You will receive a 404 - File not found error - with something that looks
like this in your browser's address bar:
Warning</b>:%20%20Cannot%20modify%20header%20information%2 0-%20headers%20alr
eady%20sent%20by%20(output%20started%20at%20/home/clearpoi/public_html/beta/
contact.php:19)%20in%20<b
Here is code from the Feedback form:
<div id="right_menu_feedback">
<form method="POST" action=
"<?
if ( empty($_POST['message']) || empty($_POST['email_address']) )
{
}
else
{
include "send_mail.php";
}
?>"
style="font-family: Arial, Helvetica, sans-serif; font-size:12px">
Email address: <input name="email_address" type="text" /><br />
Message:<br />
<textarea name="message" rows="12" cols="25"></textarea><br />
<input type="submit" value="Send" style="font-family: Arial, Helvetica,
sans-serif">
</form>
</div>
Here is the entire send_mail.php file:
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "my*******@mydomain.com", "CSI Feedback Form", $message, "From:
$email_address" );
header( "Location: http://www.mydomain.com/thankyou.html" );
?>
Perhaps I shouldn't have a separate script to send the message - can I merge
send_mail.php into the form code on contact.php? Not sure this would solve
the problem... which I'm sure is something elementary...
Thanks again for your help.