I'm afraid that PHP is a mystery to me, but I have a site where I want two contact forms to be available, with the subsequent "thank you" pages being different for each one.
At present they both go to the same pages.
The pages are: http://www.c5d.co.uk/addresschange.php which when complete goes to http://www.c5d.co.uk/send_contact.php
The second page is http://www.c5d.co.uk/addresschangetwo.php which also goes to http://www.c5d.co.uk/send_contact.php I'd like it to go to
http://www.c5d.co.uk/send_contacttwo.php Is this possible and if so how.
Please reply as if you were talking to a simpleton. When it comes to this you are.
This is the coding
<?php
// Contact subject
$subject ="$Contact Form";
// Details
$message="$detail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $detail <$mail_from>";
// Enter your email address
$to ='antonylambert@c5d.co.uk';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contacttwo){
echo "Thanks for sending this change of details. I shall update our records right away.";
}
else {
echo "ERROR";
}
?>
Thanks
Antony



Reply With Quote

/p>
Bookmarks