-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_country.php
43 lines (36 loc) · 1.47 KB
/
add_country.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
<?php
include('header.php');
//include('db.php');
if(@$_POST['submit']){
$countryname = $_POST['countryname'];
echo $qry = "insert into country(`countryname`)values('$countryname')";
$res = mysqli_query($conn, $qry);
}
?>
<main class="main-content bgc-grey-100">
<div id="mainContent">
<div class="row gap-20 masonry pos-r">
<div class="masonry-sizer col-md-6">
</div>
<div class="masonry-item col-md-6">
<div class="bgc-white p-20 bd">
<h6 class="c-grey-900">Add Country
</h6>
<div class="mT-30">
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="exampleInputEmail1">Country Name
</label>
<input type="text" name="countryname" class="form-control" aria-describedby="emailHelp" placeholder="Enter country name">
</div>
<input type="submit" name="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<?php include('footer.php'); ?>