Passing Variables in Header call

msullivan3's Avatar, Join Date: Apr 2009
Go4Expert Member
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?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
3 ways you can get them in the new location

1. Passing with the URLs
2. Setting the session
3. Setting the cookie
0
msullivan3's Avatar, Join Date: Apr 2009
Go4Expert Member
thanks shabbir. i ended up using the cookie method.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by msullivan3 View Post
thanks shabbir. i ended up using the cookie method.
Thats great