header problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

header problem

Post by potato »

I use the following code to make the page jump to another specific page:

header(sprintf("Location: %s", $insertGoTo));



but i get this as result:

Warning: Cannot modify header information - headers already sent by (output started at blahblah...) in blahblahblah...


What am i doing wrong? Or is there another way to do it?
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

Post Reply