close

http://dreamtails.blog.ithome.com.tw/post/1958/27785

 

貼了一段時間 有些人連過來看到連結應該蠻失望了XD

補一下自己寫的好了

 

 


<head>
<title></title>
</head>


<body>
<form id="form1" name="form1" method="get" action="index.php">
<p>username
<input name="username" type="text" id="username" size="20" value=""/>
&nbsp;<br> password
<input name="password" type="text" id="password" size="20" value=""/>
&nbsp;&nbsp;<br> 
<input type="submit" name="login" id="login" value="login" />
&nbsp;&nbsp; 
</form>
</body>
</html>
<br>

前面是簡單的post  因為我需要的功能不多 只需要送出帳號密碼

密碼部分是用明碼 因為只是測試咩 要變成星號的話改變type="password"就可

再另外一端index.php裡面 就可以用$_POST["username"] 與 $_POST["password"]來取得值

 

進一步做資料庫的query

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 thusnoy 的頭像
    thusnoy

    記錄記錄記錄

    thusnoy 發表在 痞客邦 留言(0) 人氣()