if (isset($_POST['username']) && isset($_POST['email']) && isset($_POST['password'])){
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
var_dump($_POST);
die();
if (isset($_POST['username']) && isset($_POST['email']) && isset($_POST['password'])){
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
var_dump($username, $password, $email);
die();
$query = "INSERT INTO users ('username', 'password', 'email') VALUES ('$username', '$password', '$email')";
$result = mysqli_query($connect, $query);
}
if ($result){
echo "Успешно";
} else {
echo "Что-то пошло не так";
}