need help with header location please

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
jasondavis
Forum Commoner
Posts: 60
Joined: Sat Feb 04, 2006 5:35 pm

need help with header location please

Post by jasondavis »

Basicly I have a page which submits to another page
when the user arrives at the new page the URL looks like this:
chat/?agreecheck=on

How can I make it like redirect to :
chat/ if it shows up as chat/?agreecheck=on ? any help appreciated, I looked at php.net header section im still lost examples would be great thanks :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

have the logic look at $_SERVER['QUERY_STRING'].

As for the header call, send a "location" along with the full URL to redirect to.
Post Reply