【发布时间】:2011-04-13 06:47:00
【问题描述】:
这是网址:
http://localhost/test.php?id=http://google.com/?var=234&key=234
而且我无法获得完整的 $_GET['id'] 或 $_REQUEST['d']。
<?php
print_r($_REQUEST['id']);
//And this is the output http://google.com/?var=234
//the **&key=234** ain't show
?>
【问题讨论】:
-
尝试获取
$_REQUEST['key']或将网址更改为http://localhost/test.php?id=http://google.com/?var=234&amp;key=234 -
@teneff 如何在不指定“id”的情况下获取所有 $_GET?
-
只需使用
$_GET:) 就像print_r($_GET);