Quote:
Originally Posted by Zoxxa
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