![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
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.
|
|
|
|
|
|
#5 |
|
Expert Programmer
|
Re: How do I silence header?
@stu7398: I suggest you go elsewhere if you plan to ask the same question multiple times.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making a header file | alphonso | C++ | 14 | Apr 5th, 2006 6:32 AM |
| question about header files and prototyping functions | linuxpimp20 | C | 13 | Sep 7th, 2005 8:28 AM |
| Header files | Klarre | C++ | 13 | Jun 15th, 2005 11:25 AM |
| question (BMP header) | amin1982 | C++ | 2 | Apr 21st, 2005 9:25 PM |
| TCP Header for Echo Communication | AusTex | C++ | 0 | Feb 27th, 2005 3:57 PM |