You are here: Re: Get/POst method not working « All PHP « IT news, forums, messages
Re: Get/POst method not working

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация