Spaces:
Running
Running
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> | |
<link rel="stylesheet" href="sweetalert2.min.css"> | |
</head> | |
<body> | |
</body> | |
</html> | |
include("connect.php"); | |
if(isset($_POST['reg_submit'])) | |
{ | |
$username = $_POST['username']; | |
$email = $_POST['email']; | |
$password = $_POST['password']; | |
$insert = "INSERT INTO registration (username, email, password) VALUES ('$username', '$email', '$password')"; | |
$query =mysqli_query($conn,$insert); | |
if($query) | |
{ | |
<script> | |
swal({ | |
title: "Registration Successfully", | |
text: "Data inserted", | |
icon: "success", | |
}); | |
</script> | |
} | |
} | |