View Single Post
Old 12-05-2012, 02:20 PM   PM User | #1
Oatley
New Coder

 
Join Date: Sep 2012
Posts: 69
Thanks: 56
Thanked 0 Times in 0 Posts
Oatley is an unknown quantity at this point
Access $POST data using header re-direct?

Hello, I am looking for some help with a form I am designing please.

I have a form, where a user enters their $_POST['user_id'] and their $_POST['name'].

Now whatever number they enter for their $_POST['user_id'] and hit submit on the form I use to make a URL string for examlple

search/123456/
Or
search/123473/

Which is done using a header redirect

PHP Code:
header('Location: search/'.$_POST['user_id']).'');
exit; 
However, on the page I am re-directing to I also want to be able to access
echo the $_POST['name'].

Is it possible without passing the name in the URL string, or is there a way around this?

Thank you
Oatley is offline   Reply With Quote