PDA

View Full Version : Kirupa Mailer PHP - Thank you page?



garyt2357
August 14th, 2008, 02:47 PM
I installed the mailer.php file that I downloaded from this site and when I fill in the form and submit the info I get the following on a blank page...

Thank you! A representative will contact you shortly.


No can I customize the page to look like the rest of the site? Any way I get it to look like part of the site or bounce back to the home page or anything? THANKS IN ADVANCE!!!!!!

simplistik
August 14th, 2008, 03:40 PM
in the tutorial where it has


echo "Data has been submitted to $to!";

just change that to


header ("Location: thanks.php");

that's the easiest way to do it, better ways would require a little more "advanced" programming, but the header redirect will work best for you.

garyt2357
August 14th, 2008, 04:14 PM
and from there I will build my custom "thank you " page in the thanks.php file - correct? Thanks again!!!!!

garyt2357
August 14th, 2008, 04:24 PM
it worked - you da man!

is there any way to have an email shoot back to the person who submits the form?

simplistik
August 14th, 2008, 04:25 PM
it worked - you da man!

is there any way to have an email shoot back to the person who submits the form?

yea just create another mail() function with all the users information in it

garyt2357
August 14th, 2008, 04:38 PM
so now I have it as...

mail($to, $subject, $body);

and this goes to the recipient...

if I add another mail() with what code inside the brackets? $recipient?

simplistik
August 14th, 2008, 07:01 PM
another "to", "subject" and "body" just don't use the same variable names.