By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,746 Members | 1,893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,746 IT Pros & Developers. It's quick & easy.

need a little help

P: n/a
Can someone tell me what command should I use in this PHP file to have
the broswer redirected to a "thankyou.htm" page instead of a simple
"thanks for your confirmation" message .

Thanks in advance ,
Paky

mail("$email_sales","Reservation Confirmation#
$reservation",$text,"From:SecureForm<$email_sales> ");
print "<center><br><br><b> THANKS FOR YOUR
CONFIRMATION<br><br><br>";
}
else
{
if ($resultcli==$_CLI_TIMEOUT)
{
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Paky wrote:

Can someone tell me what command should I use in this PHP file to have
the broswer redirected to a "thankyou.htm" page instead of a simple
"thanks for your confirmation" message .

Thanks in advance ,
Paky

mail("$email_sales","Reservation Confirmation#
$reservation",$text,"From:SecureForm<$email_sales> ");
print "<center><br><br><b> THANKS FOR YOUR
CONFIRMATION<br><br><br>";
}
else
{
if ($resultcli==$_CLI_TIMEOUT)
{


Something like:

header("Location: http://yourdomain.com/thank-you.htm");

Should work, though you'll have to put this line before anything is written to
the page, even a single line-break or space.

Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.