輸入使用者名稱密碼進行登入操作進行表單提交
程式碼如下:
login.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <hr size="1"> <form action="success.php" method="post" > 用户:<input type="text" name="username"/><br> 密码:<input type="password" name="password" /><br> <input type="submit" name='login' value="登录"> </form>