View Single Post
Old
Leder678's Avatar
Leder678 Leder678 is offline
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,430
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 06-09-2009, 09:19 PM

Code:
<?php   

     
    $your_name = $_GET['name'];   
    $your_email = $_GET['email'];   
    $your_message = $_GET['message'];   
      
    $recipient_email = "scripts4he@yahoo.com";  

    $subject = "from: " . $your_email;  
    $headers = "From: " . $yourname . " <" . $your_email . ">n;  
    $headers .= 'Content-type: text/html; charset=iso-8859-1';   
      
    $content = "<html><head><title>Contact letter</title></head><body><br>";    
    $content .= "Name: <b>" . $your_name . "</b><br>";   
    $content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";   
    $content .= $your_message;   
    $content .= "<br></body></html>";   

    mail($recipient_email,$subject,$content,$headers);   
?>   
<html>   
    <body bgcolor="#282E2C">   
        <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">   
            Your message was sent. Thank you.   
        </div>   
    </body>   
</html>   
<script>resizeTo(300, 300)</script>
There you go, look at this line and see if you can find the error without looking at the code above:

Code:
$subject = "from: " . $your_email";
Hint it's a " as it says in the php error message.


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote