php笔记(5) 数组GET

';
//	echo $_SERVER['argv'].'
'; if( $_SERVER['QUERY_STRING'] != '' ) { echo 'QUERY_STRING '.$_SERVER['QUERY_STRING']. '
'; } echo 'SERVER_ADDR ' .$_SERVER['SERVER_ADDR']. '
'; echo 'HTTP_ACCEPT ' .$_SERVER['HTTP_ACCEPT']. '
'; echo 'HTTP_HOST ' .$_SERVER['HTTP_HOST']. '
'; $allow_empty_referer = TRUE; if(isset($_SERVER['HTTP_REFERER'])) { echo 'HTTP_REFERER '.$_SERVER['HTTP_REFERER']. '
'; } if( $_SERVER['QUERY_STRING'] != '' ) { if($_GET['user'] != '') { echo 'UserName:'.$_GET['user'].'
'; } if($_GET['pwd'] != '') { echo 'PassWord:'.$_GET['pwd'].'
'; } } ?>
Name:
Pwd:  


输入

SafeDebug QQ is

1322301722

运行显示:

QUERY_STRING user=safedebug+QQ+is&pwd=1322301722&submit=%CC%E1%BD%BB%B2%E9%D1%AF%C4%DA%C8%DD
SERVER_ADDR 192.168.145.130
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
HTTP_HOST 192.168.145.130
HTTP_REFERER http://192.168.145.130/5.php
UserName:safedebug QQ is
PassWord:1322301722


 

 

你可能感兴趣的:(PHP)