I apologize if my question might seem a bit basic. I am about a day and half into learning how to do all this web development stuff, so I am a newbie to the 10th power. Luckly, I do have a little bit of a background in programming so I am not completly lost.
Here is what I am trying to do:
I need to direct the user to another php script but keep the same sate of my "user" object.
Here is what I've tried: (psuedo code)
$currentUser = new User(); # <snipped out irelevent code> $query = urlencode( serialize($currentUser) ); header( "Location:index.php?user=$query" );
now it will forward to index.php just fine, and I see the serialized url version of my object in the title bar, but I'm not sure how to grab it from the url.
I've tried both $_GET['user'] and $_SERVER['QUERY_STRING'] to retrieve the data, but they return empty strings. I have not been able to find the answer in my PHP book, google, or in RFC 2616. Part of the problem is I don't really know what to look for. Can any one point me in the right direction?
Thanks in advance!