|
Posted by Rik on 06/16/07 12:50
On Sat, 09 Jun 2007 21:05:05 +0200, J.O. Aho <user@example.net> wrote:
> macsaregreat@gmail.com wrote:
>> O,THANK YOU so much ^_^ it works with the
>> <?php
>>
>> echo $_REQUEST['submission_id'];
>>
>> import_request_variables('p', 'p_');
>> echo $p_submission_id;?>
>>
>> What is the difference between the two that allow this one to work an=
d
>> not the other?
>
> There isn't any magic behind the use of $_REQUEST, it's just the array=
=
> where
> you put together the $_POST, $_GET and $_COOKIE array, kind of
>
> $_REQUEST =3D array_merge($_POST,$_GET,$_COOKIE)
To elaborate on that: The possible $_SESSION is in there too, and it wil=
l =
merge the respective arrays according to variables_order, which normally=
=
is GPCS (GET, POST, COOKIE, SESSION). The latter will overwrite the =
earlier.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|