Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote:
 At 2:52 AM -0700 2/5/09, TS wrote:
 I want my script to run and redirect with
 the var to another page without the user seeing it. Currently, I am using
 GET and

 header(Location: http://domain/?somevar=somevalue;)
 
 That would, by definition, allow the user to see it.
 
 If you want to pass a variable to another script, I know of four
 choices, namely:
 
 1. Use POST;
 2. Use GET;
 3. Write the variable to a database;
 4. Include the next script.
 
 HTH's
 
 tedd
 

5. Stick it in the session

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread tedd

At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote:

tedd wrote:

 At 2:52 AM -0700 2/5/09, TS wrote:

 I want my script to run and redirect with
 the var to another page without the user seeing it. Currently, I am using
 GET and

 header(Location: http://domain/?somevar=somevalue;)


 That would, by definition, allow the user to see it.

 If you want to pass a variable to another script, I know of four
 choices, namely:

 1. Use POST;
 2. Use GET;
 3. Write the variable to a database;
 4. Include the next script.

 HTH's

 tedd



5. Stick it in the session

--
Thanks!
-Shawn


Duh!

Thanks, I should wait a day before posting anything.

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php