VK4KBG Posted February 12, 2009 Share Posted February 12, 2009 Hi, I have a Contact Form that I would like to change a little. Instead of using the 'internal' message; // 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>Just to let you know your e-mail has been successfully sent to Warren...<i>Thank you</i></p> </body></html>"); exit(0); I would like it to direct to a Thank you page: Http://thesite.com/thankyou.html Would be grateful if some can assist; Cheers Ron Link to comment https://forums.phpfreaks.com/topic/144977-code-mods/ Share on other sites More sharing options...
revraz Posted February 12, 2009 Share Posted February 12, 2009 Just replace the echo below with a HTML or JS redirect. if(!mail($to,$subject,$body,$headers)){ echo "mail error"; Link to comment https://forums.phpfreaks.com/topic/144977-code-mods/#findComment-760747 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.