[PHP] Re: Capturing $_POST variables

2003-11-28 Thread Bogdan Stancescu
The only way you can send POST variables as POST variables in the next 
page is by using a form. That's obvious, you can't control the browser. 
So either use Wouter's suggestion to send them via sessions (if you 
don't HAVE to have them sent over via POST), or use Sophie's suggestion 
to build a list of hidden inputs in a form.

Bogdan

Shaun wrote:
Hi,

is it possible to capture $_POST variables sent from a previous page so i
can send them on to the next page?
Thanks for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Capturing $_POST variables

2003-11-28 Thread Shaun
Thanks you for your replies,

is there a reason why i couldn't use the following?

$_POST = $_POST;

Bogdan Stancescu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 The only way you can send POST variables as POST variables in the next
 page is by using a form. That's obvious, you can't control the browser.
 So either use Wouter's suggestion to send them via sessions (if you
 don't HAVE to have them sent over via POST), or use Sophie's suggestion
 to build a list of hidden inputs in a form.

 Bogdan

 Shaun wrote:
  Hi,
 
  is it possible to capture $_POST variables sent from a previous page so
i
  can send them on to the next page?
 
  Thanks for your help.

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



Re: [PHP] Re: Capturing $_POST variables

2003-11-28 Thread Sophie Mattoug
Shaun wrote:

Thanks you for your replies,

is there a reason why i couldn't use the following?

$_POST = $_POST;

You want to assign to the $_POST array of the third page the value of 
the $_POST of the seconde one ? You cannot do the way you wrote because 
it's not on the same page !

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


RE: [PHP] Re: Capturing $_POST variables

2003-11-28 Thread Ford, Mike [LSS]
On 28 November 2003 14:21, Shaun wrote:

 Thanks you for your replies,
 
 is there a reason why i couldn't use the following?
 
 $_POST = $_POST;

None whatsoever -- but it's an expensive way of effectively doing nothing!
(Which, I suspect, is not what you want to do.)

The fact that you are even asking this suggests that you have a fundamental
misunderstanding of the way things work.  You have received several good
answers to your original question -- pick the one you prefer.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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