-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadd_user.php
50 lines (37 loc) · 1.21 KB
/
add_user.php
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
42
43
44
45
46
47
48
49
50
<?php
require('connection.php');
?>
<DOCTYPE html>
<html>
<head>
<title> Add User </title>
</head>
<body>
<?php
if(isset($_GET['Name']))
{
$lname = $_GET['Name'];
$email = $_GET['email'];
$password = $_GET['password'];
$sql = "INSERT INTO user (User_name , User_email,password )
VALUES('$lname','$email','$password' )";
if($conn->query($sql)==true){
echo 'Data Inserted';
}
else
{
echo 'Not inserted';
}
}
?>
<form action = "add_user.php" method = "GET">
User NAME : <br>
<input type = "text" name = "Name" ><br><br>
User Email : <br>
<input type = "email" name = "email" ><br><br>
Password : <br>
<input type = "password" name = "password" ><br><br>
<input type = "submit" value = "Submit" ><br><br>
</form>
</body>
</html>