Hello there. Well I am really new with PHP and I have been trying to learn little by little but I think I got stock on the code.
This is what I have
<?php
include "config.php";
if ($name <> "" and $ymail <> "" and $timetocall<> "" and $message <> "" ) {
mail("$email", "$subject", "From: $name\nMail: $ymail\nTime to call:\n\n$timetocall\n\nPhone:$phone\nMessage:\n\n$message");
$msg = "Your message has been sent, and we will be in touch with you shortly. Thank you for your input. ";
} else {
$msg = "All fields are required! Please push the back button to fill out what you missed";
}
?>
<p><?php echo $msg; ?></p>
I need to change the $msg for a header but it wont work. The reason? don't know but I hope you guys can help me out. I would like to redirect this form to a thank you page after is submitted. Check out my site and you will see what I'm talking about .
This is the thank you page http://shinnyweb.com/quote_form_thankyou.html and this is the site shinnyweb.com
.
PLEASE HELP. I've been going around this for hours and I do not know the answer.
any response to: shinnyweb@hotmail.com THANX.............