View Single Post
Old 09-11-2012, 07:24 PM  
AdultEUhost
ORLY?
 
AdultEUhost's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
Quote:
Originally Posted by Zoxxa View Post
Hard to tell with what you posted, would have to see the form and rest of the page(s).

I cleaned this up a bit:

Code:
if(isset($send)) {
	header("Location: http://www.domain.com/thanks.htm");
} else {
	echo "We encountered an error sending your mail";
}
 
// Everything below this is useless unless there is more code not shown.
exit();
}
Hey Ian,

$send is probable $_POST['send'] unless you have register_globals = on which you really shouldnt :-)

Edit; Just thought of that $send might be the return of the mail(); function, in that case ignore my reply.

You say you want to include the thanks.html code at the top of your form, yet you use a header('location: ') statement. You are probably looking for an include('url'); statement no?
__________________
ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014

Last edited by AdultEUhost; 09-11-2012 at 07:33 PM..
AdultEUhost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote