I'm using html. I would like for it to say thank you when it is done. If I understand it correctly I need to save it as a link that the button points to right, so when it is clicked it will know to open that link?
You are some what right..
When you click the submit button it does two things.
1. send the info the client input ie email, db
2. then it redirect to a thank you page.
Might look like this on your php page
-
// send email
-
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
-
// redirect to success page
-
if ($success){
-
print "<meta http-equiv=\"refresh\" content=\"0;URL=thankscontact.htm\">";
-
}
-
else{
-
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
-
}
-
nomad