Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'includes/db_connect.php';
- $title = $_POST['title'];
- $fname = $_POST['fname'];
- $lname = $_POST['lname'];
- $uname = $_POST['uname'];
- $pass = $_POST['pass'];
- $phone = $_POST['phone'];
- $email = $_POST['email'];
- $address = $_POST['address'];
- $age = $_POST['age'];
- $height = $_POST['height'];
- $weight = $_POST['weight'];
- $notes = $_POST['notes'];
- $status = 0;
- $flag = 0;
- $sql = "INSERT INTO users (`title`, `first_name`, `last_name`, `phone`, `u_email`, `address`, `age`, `height`, `weight`, `notes`, `u_name`, `u_pass`, `u_status`, `flag`)
- VALUES ('$title', '$fname', '$lname', '$phone', '$email', '$address', '$age', '$height', '$weight', '$notes', '$uname', '$pass', '$status', '$flag')";
- if (mysqli_query($conn, $sql)) {
- echo "<script>location.href='success.php'</script>";
- } else {
- echo "<script>location.href='failure.php'</script>";
- }
- mysqli_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement