It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

html page response to php mailresult==OK?

html page response to php mailresult==OK?

Postby jerohero on Sat Sep 05, 2009 8:50 am

Hi all,
I'm new to php, but managed to get a domail.php working. My form from my html website is sent by the php file to my email address. However, the php echoes a mailresult upon successful sending, but how can I let my website respond to this mailresult?? I'd like to go to a different page, when the mailresult==OK, so something in my html file like

if($mailResult==OK){
//go to page saying, your mail has been sent!
}

OR I could change the "OK" to something more like "Thank you, your mail has been received" in the php file, because this text IS shown in my browser window. Then I would need to know how to make the layout of the window saying this fit my website layout, because now the text is just in a white plain frame..

Hope you guys can help me with either of those two options. Thanks a ton!!

Jay
jerohero
 
Posts: 2
Joined: Sat Sep 05, 2009 8:47 am

Re: html page response to php mailresult==OK?

Postby Johnathan on Mon Sep 07, 2009 9:15 pm

if($mailResult){
header("");
}

Like that?
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland


Who is online

Users browsing this forum: No registered users and 6 guests