久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      PHP如何獲取表單提交的數(shù)據(jù)

      PHP如何獲取表單提交的數(shù)據(jù)

      PHP如何獲取表單提交的數(shù)據(jù)

      1、超全局?jǐn)?shù)組變量:$_GET[]

      描述:獲取表單 method = “get” 提交的數(shù)據(jù)

      舉例:$username = $_GET[“username”];

      2、超全局?jǐn)?shù)組變量:$_POST[](推薦學(xué)習(xí):PHP編程從入門到精通)

      描述:獲取表單 method = “post” 提交的數(shù)據(jù)

      舉例:$username = $_POST[“username”];

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML>  <HEAD>   <TITLE> New Document </TITLE>   <META name="Generator" content="EditPlus">   <META name="Author" content="">   <META name="Keywords" content="">   <META name="Description" content="">   <style type="text/css">   </style>   <script type="text/javascript">   </script>  </HEAD>    <BODY>   <?php   var_dump($_POST);  //超全局變量,$_GET  $POST  (數(shù)組類型) if(isset($_POST["ac"]) && $_POST["ac"]=="login")  //防止灌水,判斷表單確實(shí)是自己的表單 { 	$username=$_POST["username"]; 	$userpwd=$_POST["userpwd"]; 	echo("用戶名是:{$username},密碼是:{$userpwd}"); }   ?>     <form name="form1" method="post" action=""> 用戶名:<input type="text" name="username" /> 密碼:<input type="password" name="userpwd" /> <input type="hidden" name="ac" value="login" /> <input type="submit" value="提交表單" />   </form>  </BODY> </HTML>

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)