-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddsuppliers.php
100 lines (91 loc) · 4.12 KB
/
addsuppliers.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
session_start();
include("../../db.php");
include "sidenav.php";
include "topheader.php";
if(isset($_POST['btn_save']))
{
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
$email=$_POST['email'];
$user_password=$_POST['password'];
$mobile=$_POST['phone'];
$address1=$_POST['city'];
$address2=$_POST['country'];
mysqli_query($con,"insert into user_info(first_name, last_name,email,password,mobile,address1,address2) values ('$first_name','$last_name','$email','$user_password','$mobile','$address1','$address2')")
or die ("Query 1 is inncorrect........");
mysqli_close($con);
}
?>
<!-- End Navbar -->
<div class="content">
<div class="container-fluid">
<!-- your content here -->
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-primary">
<h4 class="card-title">Add User</h4>
<p class="card-category">profile</p>
</div>
<div class="card-body">
<form action="" method="post" name="form" enctype="multipart/form-data">
<div class="row">
<div class="col-md-3">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">First Name</label>
<input type="text" id="first_name" name="first_name" class="form-control" required>
</div>
</div>
<div class="col-md-4">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Last Name</label>
<input type="text" name="last_name" id="last_name" class="form-control" required>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Email</label>
<input type="email" name="email" id="email" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Password</label>
<input type="password" id="password" name="password" class="form-control" required>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">phone number</label>
<input type="text" id="phone" name="phone" class="form-control" required>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">City</label>
<input type="text" name="city" id="city" class="form-control" required>
</div>
</div>
<div class="col-md-4">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Address</label>
<input type="text" name="country" id="country" class="form-control" required>
</div>
</div>
</div>
<button type="submit" name="btn_save" id="btn_save" class="btn btn-primary pull-right">Add</button>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
include "footer.php";
?>