我尝试了几种不同的方法,并查看了几个类似的问题,希望能正确处理我的页面。然而,我一直没有成功。我收到三个提示未定义变量的通知:
Notice: Undefined index: username
Notice: Undefined index: password
Notice: Undefined index: dataAction
$usernameLabel = "Username:";
$usernameName = "username";
$usernameValue = $_POST[$usernameName];
$passwordLabel = "Password:";
$passwordName = "password";
$passwordValue = $_POST[$passwordName];
$submitName = "dataAction";
$submitValue = "Submit";