前往
大廳
主題

html / javascript 傳表單到PHP 實作1. html / javascript側- 2020/2/19

艾倫D索妮雅 | 2021-06-10 19:40:59 | 巴幣 0 | 人氣 230

開啟Xampp的apache 然後用瀏覽器進入自己的"Ipv4位址/程式檔位置",或是直接"127.0.0.1/程式檔位置" 或 打 "localhost/程式檔位置",之後進行輸入資料,且記打好的程式檔(.html)請放在Xampp裡的htdoc資料夾中!!
下列(.html)程式碼:

<html>
<head>
<meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
</head>
<body>
<form action="test.php">
帳號:<input type="text" name="account" required /><br>
密碼:<input type="text" name="password" required /><br>
<button type="submit"> 登入 </button>
<button type="reset"> 重設 </button>
</form>
</body>
</html>

創作回應

相關創作

更多創作