-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex1.php
81 lines (68 loc) · 3.1 KB
/
Index1.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
include 'con.php';
$obj=new configure();
/* INSERT record*/
if(isset($_POST['submit'])){
echo $obj->insert($_POST);
}
?>
<!doctype html>
<html lang="eng">
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" >
<title>Add details</title>
</head>
<body>
<div>
<div class="container my-4">
<?php
if (isset($_GET['msg']) AND $_GET['msg']=='ins')
{
echo '<div class="alert alert-success" role="alert">
"Data insert successfully"
</div>';
}
?>
<div class="row">
<div class="col-sm-5">
<div class="card bg-white">
<div class="card-body">
<div class="bg-warning text-white text-center">
<h3>Vehicles</h3>
</div><br>
<form method="post">
<div class="mb-3">
<label for="Reg no" class="form-label">Register number</label>
<input type="number" class="form-control" id="Reg no" name="Reg" autocomplete="off" required>
<div class="mb-3">
<label for="Name" class="form-label">vehicle Name</label>
<input type="text" class="form-control" id="Name" autocomplete="off" name="Name" required>
</div>
<div class="mb-3">
<label for="mileage" class="form-label">Mileage</label>
<input type="number" class="form-control" id="mileage" autocomplete="off" name="mileage" required >
</div>
<div class="mb-3">
<label for="colour" class="form-label">Colour</label>
<input type="text" class="form-control" id="colour" autocomplete="off" name="colour" required >
</div>
<div class="mb-3">
<label for="ph no" class="form-label">Mobile number</label>
<input type="number" class="form-control" id="ph no" autocomplete="off" name="mobile" required>
</div>
<div class="mb-3">
<label for="Address" class="form-label">Address</label>
<input type="text" class="form-control" id="Address" autocomplete="off" name="Address" required>
</div>
<button type="submit" class="btn btn-danger" name="submit">submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>