PDA

View Full Version : Php Help!



splintercell!
12-02-2005, 06:09 PM
Ok Im trying to learn some basic Php like a php form (off Impetuous.net) But I have a problem :o
Here is my code:
<html>
<head>
<title>Sendmail</title>
</head>


<body bgcolor="#FFFFFF">
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.mymx.ax-hosting.com/thanks.htm" );

?>
</body>


</html>And this is the message I get when trying to send "/ :


Warning: Cannot modify header information - headers already sent by (output started at /home2/mymx/public_html/sendmail.php:8) in /home2/mymx/public_html/sendmail.php on line 14

Any ideas why??

NEXT- I found out I had to remove the html and i did but no change "/

After html taken off:

Warning: Cannot modify header information - headers already sent by (output started at /home2/mymx/public_html/sendmail.php:2) in /home2/mymx/public_html/sendmail.php on line 8

Want to hide these adverts? Register an account for free!