-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest2.php
52 lines (45 loc) · 1.49 KB
/
test2.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
51
52
<?php
include('db.php');
if(isset($_POST['login'])){
$first = $_POST['first'];
$last = $_POST['last'];
$email = $_POST['email'];
if (!empty($first) && !empty($last) && !empty($email)) {
$sql ="INSERT INTO `custmer`(`first`, `last`, `email`) VALUES ('$first',' $last',' $email ')";
$qry = mysqli_query($cooect,$sql );
if ($qry) {
header("location: end.php");
}
}else{
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css\test2.css">
<title>test2</title>
</head>
<body>
<div class="container">
<div class="page-left">
<div class="header">
<div class="header1">Welcome Back</div>
<div class="header2">Room Rent Price Is (<b>30$</b>)</div>
</div>
<div class="form-page">
<form action="" method="post">
<input class="first" type="text" placeholder="First Name" name="first" /><br><br>
<input class="last" type="text" placeholder="Last Name" name="last" /><br><br>
<input class="email-add " type="text" placeholder="Your Email" name="email" /><br><br>
<input type="submit" class="login" name="login" value="Run">
</form>
</div>
</div>
<div class="page-right"></div>
</div>
</body>
</html>