Home > Backend Development > PHP Tutorial > $_REQUEST、$_GET、$_POST,该怎么处理

$_REQUEST、$_GET、$_POST,该怎么处理

WBOY
Release: 2016-06-13 12:31:03
Original
1068 people have browsed it

$_REQUEST、$_GET、$_POST

本帖最后由 u010250831 于 2013-12-19 21:23:04 编辑 大家好!很简单的一行代码!结果却是大不一样,我不知道是什么原因!请求大家帮忙解决下!
如下:
我建了一个文件cheshi.php
在其中输入如下代码:
print_r($_GET);
print_r($_POST); 
print_r($_REQUEST);
?>
输出结果为:$_GET、$_POST为空,$_REQUEST输出如下:

Array
(
    [CNZZDATA4212761] => cnzz_eid=792289677-1386735817-http%3A%2F%2Flocalhost&ntime=1386735817&cnzz_a=28<ime=1386736989461
    [bdshare_firstime] => 1386988923534
    [ECS] => Array
        (
            [visit_times] => 8
        )

    [CNZZDATA1670348] => cnzz_eid=262288638-1386581204-http%3A%2F%2Flocalhost&ntime=1387258320&cnzz_a=177&sin=none<ime=1387247284046&rtime=6
    [CNZZDATA3203633] => cnzz_eid=239809964-1387289862-http%3A%2F%2Flocalhost%2F&ntime=1387289862&cnzz_a=9&sin=none<ime=1387289857885
    [CNZZDATA4844992] => cnzz_eid=880915059-1387289981-http%3A%2F%2Flocalhost%2F&ntime=1387289981&cnzz_a=43&sin=none<ime=1387290575798
    [sYQDUGqqzHrefersh_time] => 0
    [DedeUserID] => 1
    [DedeUserID__ckMd5] => 650e0b627c089b98
    [last_vtime] => 1387416855
    [last_vtime__ckMd5] => 303054e738d2f36d
    [last_vid] => admin
    [last_vid__ckMd5] => 9fa4781db73e162f
    [PHPSESSID] => t4sr7oc4v0tfosklcv050riuk3
    [DedeLoginTime] => 1387456002
    [DedeLoginTime__ckMd5] => e539663bd26b3136
)

问题是:这些信息代表了什么!希望得到详细回答!谢谢大家了!
为什么$_REQUEST会有?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template