Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   How do I silence header? (http://www.programmingforums.org/showthread.php?t=14937)

stu7398 Jan 13th, 2008 3:00 PM

How do I silence header?
 
How do I silence header?

When my 'contact us' page is submitted, it is supposed to go to a 'thank you page' using the following function

if($thankyou_page == "yes") {
header ('refresh: 0; url='.$thankyou_url.'');
}

Instead I get the following error

Warning: Cannot modify header information - headers already sent by (output started at /html/****co.uk/inc/head.inc:5) in /html/****co.uk /files/functions.php on line 1174

how can i get my conatct page to direct to a thank you page.
i'm studying php programming, clear english would be appreciated.

thanks.

Sane Jan 13th, 2008 3:03 PM

Re: How do I silence header?
 
What is this doing here!? You already asked this question! You even received enough information to fix the problem, if you were to take the time to read and understand your replies.

http://www.programmingforums.org/thread14926.html

Furthermore, that's not even the correct header definition for a redirect. You're attempting to put a "meta redirect" in the HTTP header. I urge you to read up on the proper ways to redirect a client, since what you're trying to do isn't even a viable option.

stu7398 Jan 13th, 2008 3:09 PM

Re: How do I silence header?
 
It's called 'Learning' you used to be a novive that knew nothing at one point in time. Instead of wasting your time telling me it shouldn't be here you could have given guidance. You're not the only forum on the net.

Sane Jan 13th, 2008 3:11 PM

Re: How do I silence header?
 
Did you even click the link? I already gave you guidance for this same question in a different thread. That's the whole point.

titaniumdecoy Jan 13th, 2008 6:15 PM

Re: How do I silence header?
 
@stu7398: I suggest you go elsewhere if you plan to ask the same question multiple times.


All times are GMT -5. The time now is 9:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC