Why do you write the variables like this?
Code: Select all
$username = (isset($_POST['username'])) ? $_POST['username'] : "";
$password = (isset($_POST['password'])) ? $_POST['password'] : "";Moderator: General Moderators
Code: Select all
$username = (isset($_POST['username'])) ? $_POST['username'] : "";
$password = (isset($_POST['password'])) ? $_POST['password'] : "";Code: Select all
$username = (isset($_POST['username'])) ? $_POST['username'] : "";Code: Select all
if (isset($_POST['username'])){
$username = $_POST['username'];
} else {
$username = "";
}