Okay, here is the deal. I am starting out simple, so here is what I made...
Page one:email.php
and page two:
sendmail.php
$name = $_POST['name'];
$email = $_POST['email'] ;
$message = $_POST['message'] ;
mail( "tim.nealon@yahoo.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.yahoo.com" );
?>
The E-Mail goes through fine. The problem is, the 'header' doesn't redirect to a site I specify, in this ex, yahoo.com...it gives me this message when I submit the form "Warning: Cannot modify header information - headers already sent by "my sendmail.php page"
Any ideas?
2007-03-07
17:53:20
·
3 answers
·
asked by
tim.nealon
1