Re: passing information via REQUEST



$_REQUEST holds all variables of the $_POST, $_GET, $_COOKIE arrays ...

If you send variables to your php script via post, get, or cookies, they will be stored in this array ... You can't send variables to other scripts this way.

location() ... does not exist, does it?

if you just want to open another script you could include() it this way the second script can use the global vars of the first one ...

or you can create curl requests (safer, but a little bit more complicated)

weetat.yeo@xxxxxxxxx wrote:

Hi all ,

I have question regarding PHP . In Java , we can pass information
via REQUEST HTTP using
request.setAttributte() function .

However in PHP , i have tried using $_REQUEST['object'] , the
information is not pass, below is example code:

<?php

$_REQUEST['NAME'] = PHP;
location('../forward.php');

?>

Anyone have any ideas or suggestions what is happening ?
Thanks



--
--------------------------------------------
m2m server software gmbh - http://www.m2m.at
.