[PHP] Newbie redirect problem
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie redirect problem
On Thu, May 30, 2002 at 10:38:33AM -0500, 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. Care to define what you mean by static redirect and why that's impractical? You may already be thinking of what I'd suggest, so don't want to waste time going into it. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie redirect problem
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php