I have a "simple" email script that someone else wrote for me in PHP (because I have absolutely no knowledge of php.) Currently, the user fills out a form and clicks "submit" and the php script sends me the info in the form of an email. It then outputs "your email has been sent...Thanks." Or something like that. Here is the end of the script
What I would like to do is have the script redirect the user to a page of my choosing instead. That way I can create a nicer looking html "thanks" page instead of the blank white page with one line of text.
Can someone help me please?
| Code: |
|
// Send mail if(!mail($to,$subject,$body,$headers)){ echo "mail error"; } // display mail sent message else { echo (" <title>SendMail Notice: mail was successfully sent</title><body><br><br><br><br> <p style=\"font:11pt arial\" align=center>Your mail has been successfully sent...<i>Thank you</i></p> </body></html>"); exit(0); } // exit script } exit(0); ?> |
What I would like to do is have the script redirect the user to a page of my choosing instead. That way I can create a nicer looking html "thanks" page instead of the blank white page with one line of text.
Can someone help me please?
