这是我的 HTML 代码:
<html>
<head>
<title>Login</title>
</head>
<body>
<FORM NAME ="form1" METHOD ="POST" ACTION ="controller.php">
<input type = "text" name = "txtUsername" value = "testuser"><br>
<input type = "text" name = "txtPassword" value = "password"><br>
<Input type = 'Submit' Name ='Login' value="Login">
</FORM>
</body>
</html>
<?PHP
include_once("controller/Controller.php");
function login($username,$password) {
$controller = new Controller();
$controller->invoke("testUsername","testPassword");
}
?>
我可以帮忙用两个输入框中的值调用 PHP 登录函数吗?