Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 13th, 2008, 4:00 PM   #1
stu7398
Newbie
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0 stu7398 is on a distinguished road
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.
stu7398 is offline   Reply With Quote
Old Jan 13th, 2008, 4:03 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,199
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 13th, 2008, 4:09 PM   #3
stu7398
Newbie
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0 stu7398 is on a distinguished road
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.
stu7398 is offline   Reply With Quote
Old Jan 13th, 2008, 4:11 PM   #4
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,199
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 13th, 2008, 7:15 PM   #5
titaniumdecoy
Programming Guru
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 1,007
Rep Power: 5 titaniumdecoy will become famous soon enough
Send a message via AIM to titaniumdecoy
Re: How do I silence header?

@stu7398: I suggest you go elsewhere if you plan to ask the same question multiple times.
titaniumdecoy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
making a header file alphonso C++ 14 Apr 5th, 2006 7:32 AM
question about header files and prototyping functions linuxpimp20 C 13 Sep 7th, 2005 9:28 AM
Header files Klarre C++ 13 Jun 15th, 2005 12:25 PM
question (BMP header) amin1982 C++ 2 Apr 21st, 2005 10:25 PM
TCP Header for Echo Communication AusTex C++ 0 Feb 27th, 2005 4:57 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:15 PM.

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