ページが正しく処理されることを期待して、いくつかの異なる方法を試し、同様の質問をいくつか調べました。しかし、私は失敗しました。Undefined variable という 3 つの通知が表示されます。
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";