What the hell is actually wrong with the logic behind this form ... I can't find out, just help me out and don't say that I need to make it safe with adding sql injection measures ect ect ... i'll get round to that when i can actually build a god damn login/registration form ... its like going to somebody and asking them to build a bugatti veyron when all they can do at the moment is build bikes.
<?php
require 'database/connect.php';
if (isset ($_POST['username'], $_POST['password'], $_POST['firstname'], $_POST['lastname'], $_POST['email'], $_POST['age'])) {
$username = $_POST['username'];
$password = $_POST['password'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$age = $_POST['age'];
$result = mysqli_query($conn, "INSERT INTO user_login_details ('username','firstname','lastname','email','password','age')
VALUES ('$username', '$firstname', '$lastname', '$email', '$password', '$age' ");
if ($result == true){
echo "User Created Successfully" ;
} else {
echo "Cannot create user";
}
}
?>