Ok, this is probably basics, but I'm stuck.
I'm submitting some values with a form. The form submission takes me to a page with the script that processes the data into a db and returns me back to the previous page via this snippet:
header("location:previouspage.php?memID=".$memID."&username=".$username);
When I get to that previous page I need to turn the values that I attached to the URL into a variable so that I could process another form on the same page. So far I've tried doing it like this:
urlencode($username)
What I was trying is to get something like that:
$user_name = urlencode($username);
So that I could reuse $user_name but it just won't work. Where am I screwing myself up?