Re: passing information via REQUEST



On 08/14/2006 08:26 PM, 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
>

You could put NAME in the url as a parameter, e.g.

location('http//www.mysite.com/forward.php?NAME=PHP');

Or you could use 'curl' to construct a post request.

BTW, HTTP redirections are supposed to be absolute, not relative.



.