roondog
07-01-2007, 02:13 PM
I have a from that can be seen here (http://www.roondogid.co.uk/test/claudia)
and use the following php code:
<?php
if(isset($_POST['submit'])){
if($_POST['contact'] = 'fans'){
$to = 'roondog@roondogid.co.uk';
$subject = 'Claudia Romani Fans';
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo 'Thanks for contacting Claudia Romani your support is appreciated. Back to <a href="./index.html">Home</a>';
}else{
if($_POST['contact'] = 'modelling'){
$to = 'mark@roondogid.co.uk';
$subject = 'Claudia Romani Fans';
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo 'Thanks for contacting Claudia Romani your support is appreciated. Back to <a href="./index.html">Home</a>';
}
}
}
?>
I'm getting the message to display but the e-mail isn't sent. Any ideas?
and use the following php code:
<?php
if(isset($_POST['submit'])){
if($_POST['contact'] = 'fans'){
$to = 'roondog@roondogid.co.uk';
$subject = 'Claudia Romani Fans';
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo 'Thanks for contacting Claudia Romani your support is appreciated. Back to <a href="./index.html">Home</a>';
}else{
if($_POST['contact'] = 'modelling'){
$to = 'mark@roondogid.co.uk';
$subject = 'Claudia Romani Fans';
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo 'Thanks for contacting Claudia Romani your support is appreciated. Back to <a href="./index.html">Home</a>';
}
}
}
?>
I'm getting the message to display but the e-mail isn't sent. Any ideas?