Passing Variables in Header call

Go4Expert Member
27Apr2009,07:42   #1
msullivan3's Avatar
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?
Go4Expert Founder
27Apr2009,09:03   #2
shabbir's Avatar
3 ways you can get them in the new location

1. Passing with the URLs
2. Setting the session
3. Setting the cookie
Go4Expert Member
27Apr2009,09:16   #3
msullivan3's Avatar
thanks shabbir. i ended up using the cookie method.
Go4Expert Founder
27Apr2009,09:26   #4
shabbir's Avatar
Quote:
Originally Posted by msullivan3 View Post
thanks shabbir. i ended up using the cookie method.
Thats great