I've done the following code bellow for an e-mail form. But it handles the
HTML tags as text. Is there anyway to get the HTML tags processed to form
the mail?

<?php

    @extract($_POST);
    
    $subject = 'Intresseanmalan';
    
    $forname = stripslashes($forname);
    
    $lastname = stripslashes($lastname);
    
    $date_of_birth = stripslashes($date_of_birth);
    
    $post_address = stripslashes($post_address);
    
    $zip_code = stripslashes($zip_code);
    
    $city = stripslashes($city);
    
    $phone = stripslashes($phone);
    
    $mail = stripslashes($mail);
    
    $description = stripslashes($description);
    
    $hairdresser = stripslashes($hairdresser);
    
    $makeup = stripslashes($makeup);
    
    $text = 'F-name: '.$forname.'<br>'.
            'L-name: '.$lastname.'<br>'.
            'Birth: '.$date_of_birth.'<br>'.
            'Address: '.$post_address.'<br>'.
            'Zip: '.$zip_code.'<br>'.
            'City: '.$city.'<br>'.
            'Phone: '.$phone.'<br>'.
            'Mail: '.$mail.'<br>'.
            'Desc: '.$description.'<br>'.
            'Hair: '.$hairdresser.'<br>'.
            'Make: '.$makeup;
    
    mail('[EMAIL PROTECTED]',$subject,$text,"From: $forname $lastname
<$mail>");

?>

The mail looks like this when recived:

F-namn: J<br>L-namn: R<br>Birth: 12<br>Address: 34<br>Zip: 56<br>City:
78<br>Phone: 90<br>Mail: [EMAIL PROTECTED]<br>Desc: N<br>Hair: hair<br>Make: 
makeup

Thanks in advance // Jonas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to