Re: Redirect use back after execution

From: Date: Fri, 02 Nov 2001 13:27:43 +0000
Subject: Re: Redirect use back after execution
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73260@lists.php.net to get a copy of this message
gatop@hot.ee (Daniel Harik) wrote: > Hello > I'm making vbulletin foru hack, that allows to rate members > > my code is just 50 lines, I set link to my script from vBulletin page, > and after it has been clicked code executes, and then i want to return > user to the page where he clicked the link leading to my code, i was > wondering how can this be done, use REFERER and then header("Locatiom: > $REFERER";), will this work? the best thing to do is register the page the user came from, using get or post variables, because some browers dont use referers etc. then just use a header("Location: $theUrl"); where $theUrl is the url the user came from. -- Henrik Hansen

« previous php.general (#73260) next »