Woody
08-08-2006, 10:30 PM
Hi, I'm back again! I have a PHP form script that isn't behaving. I have tweaked it from a previous one that Twey helped me with, but it is all working except that it is not emailing me the person's email address. It was earlier, but then I wasn't getting the message! I am all fingers and thumbs with the $"'. etc, can anyone tell me what I'm doing wrong?
The php code is:
<?php
$name = $_POST['name'];
$emailaddress = $_POST['emailaddress'];
$message = $_POST['message'];
$emailaddress = 'emailaddress:' . "\n$emailaddress\n";
$message = 'message:' . "\n$message\n";
$email = 'Neil@Fair-havens.org.uk';
mail($email, 'Fair Havens Availability Request', $message, 'From: "' . $name . '" <noreply@Fair-havens.org.uk>');
header('Location: http://www.fair-havens.org.uk/thankyou.html');
?>
I don't know PHP, I'd like to, but I'm trying to master CSS at the mo!
The php code is:
<?php
$name = $_POST['name'];
$emailaddress = $_POST['emailaddress'];
$message = $_POST['message'];
$emailaddress = 'emailaddress:' . "\n$emailaddress\n";
$message = 'message:' . "\n$message\n";
$email = 'Neil@Fair-havens.org.uk';
mail($email, 'Fair Havens Availability Request', $message, 'From: "' . $name . '" <noreply@Fair-havens.org.uk>');
header('Location: http://www.fair-havens.org.uk/thankyou.html');
?>
I don't know PHP, I'd like to, but I'm trying to master CSS at the mo!