You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
599 B
25 lines
599 B
<?php
|
|
require "init.php";
|
|
|
|
$first_name = $_POST["first_name"];
|
|
$last_name = $_POST["last_name"];
|
|
$email = $_POST["email"];
|
|
$gender = $_POST["gender"];
|
|
$ip_address = $_POST["ip_address"];
|
|
$status = $_POST["status"];
|
|
|
|
$sql = "INSERT INTO mock_data_doucko (first_name, last_name, email, gender, ip_address, status)
|
|
VALUES ('$first_name', '$last_name', '$email','$gender','$ip_address','$status')";
|
|
|
|
if (mysqli_query($conn, $sql)) {
|
|
echo "New record created successfully";
|
|
} else {
|
|
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
|
|
}
|
|
|
|
mysqli_close($conn);
|
|
|
|
header("Location: /");
|
|
|
|
|
|
|
|
|