Re: Newbie redirect problem

From: Date: Fri, 31 May 2002 02:53:12 +0000
Subject: Re: Newbie redirect problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100041@lists.php.net to get a copy of this message
On Thu, 30 May 2002, Jason Tobias wrote: > When a user submits a form, it redirects them to login if they are not > logged in. > Once the user logs in. I want to redirect them to the form that they > originaly filled out. > I can define a static redirect and that works fine, just not very practical. > > Is there any way to do this? The easiest thing is probably to rework your login mechanism so that it can just be included at the top of each PHP file. That way all your variables remain in context - you can just post them from page to page in a big serialized array, or whatever. miguel

« previous php.general (#100041) next »