File size: 903 Bytes
9aba585
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!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>


<?php
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>
    <?php
    }
}
?>