Page 1 of 1

Can I post data using header function ?

Posted: Wed May 06, 2009 10:54 am
by aneuryzma
Can I post data using header ?

I need to post this variable: $phpro_username

Code: Select all

header( 'refresh: 1; url=login_submit.php')
;

This is requested in login_submit.php:

Code: Select all

$_POST['phpro_username']
thanks

Re: Can I post data using header function ?

Posted: Wed May 06, 2009 12:52 pm
by requinix
You cannot.

My advice is for your login_submit.php page to use $_REQUEST instead of $_POST. Then you can put the username into the URL.