Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Passing Variables in Header call (http://www.go4expert.com/forums/passing-variables-header-t17158/)

msullivan3 27Apr2009 07:42

Passing Variables in Header call
 
The certain webpage I have has a username that is passed from a form on a different page. All I simply want to do is pass the same variable along to the next page when I call: header( 'Location: admin.php' ) ;

Is there a better way of going to a next page or is there an easy way to pass a variable along with this call?

shabbir 27Apr2009 09:03

Re: Passing Variables in Header call
 
3 ways you can get them in the new location

1. Passing with the URLs
2. Setting the session
3. Setting the cookie

msullivan3 27Apr2009 09:16

Re: Passing Variables in Header call
 
thanks shabbir. i ended up using the cookie method.

shabbir 27Apr2009 09:26

Re: Passing Variables in Header call
 
Quote:

Originally Posted by msullivan3 (Post 46517)
thanks shabbir. i ended up using the cookie method.

Thats great


All times are GMT +5.5. The time now is 21:03.