PHP form with confirmation page

I just recently implemented the php form mailer on this site and was wondering how to get it to send the user to an html page with a message that the information was sent rather than simply display text that it was sent from the echo in the php file.

i would also like to like to a html rather than echoing through the php file, any idea how?

I don’t mean to sound rude, but why on earth would you want to do that? You can just set up an if/else loop that checks to see if the mail was sent successfully, and if it was, you can echo the exact same html that you would display on the html confirmation page that you are considering.

If you insist, however, you can set up the if/else loop to redirect you to the confirmation page instead of displaying the “success” message.


header("location:http://www.yourdomain.com/success.html");

no worries, i just don’t understand php, that’s why i needed a bit of help. but thanks for the tips.

I’m not sure about the form mailer that you are using, but I have been using those for a while, and I have one that I’ve built and added to as I’ve gone along, and it addresses a lot of issues that simple introductory tutorials usually don’t address, such as how to get past spam filters on the server, how to ensure that the email address they enter is valid and using a specific email account to send the email. I would be happy to share if you are interested.