网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站设计 > PHP
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 180.125.109.50
Old 2014-12-27, 08:17 AM
Hardeman Hardeman is offline
初级会员
 
Join Date: 2013-01-27
Posts: 1
Hardeman 现在声名狼藉
Default $_get,$_post,$_request区别

Code:
<?php

foreach($_POST as $key=>$val){
echo $key."==>".$val."<br>";
}

echo $_GET["username"]."<br>";
echo $_GET["password"]."<br>";

print_r($_POST);
echo "post<br>";
print_r($_GET);
echo "get<br>";
print_r($_REQUEST);
echo "request<br>";
?>

<form actiion="demo.php" method="post">
	username: <input type="text" name="username"><br>
	password: <input type="password" name="password"><br>
	<input type="submit" value="login">
</form>
不建议使用$_REQUEST.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:08 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.