Hi,歡迎訪問前端老白
<form action="login.php" method="POST"> <input type="text" name="username" placeholder="用戶名"> <input type="password" name="password" placeholder="密碼"> <button type="submit">登錄</button> </form>
$username = $_POST['username']; $password = $_POST['password'];
<form action="search.php" method="GET"> <input type="text" name="keyword" placeholder="請輸入關鍵字"> <button type="submit">搜索</button> </form>
$keyword = $_GET['keyword'];
老白網絡 (http://www.lofty888.cn/) 前端 后端 zblog主題.網站地圖xml