-
Notifications
You must be signed in to change notification settings - Fork 38
/
join_us.php
executable file
·74 lines (58 loc) · 2.62 KB
/
join_us.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
<?php
if(isset($_POST['commit'])){
$var1=$_POST['Name'];
$var6=$_POST['designation'];
$var2=$_POST['email'];
$var3=$_POST['contact'];
$var4=$_POST['phone'];
$var5=$_POST['add'];
include 'connection.php';
$sql = "INSERT INTO joinus (Name,desi, email,contact,phone ,city)
VALUES ('$var1','$var6','$var2','$var3','$var4','$var5')";
if (mysqli_query($connection, $sql)) {
echo "<h1><script>alert('Thanks! Your message has been succesfully sent');</script></h1>";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($connection);
}
mysqli_close($connection);
}
?>
<style type="text/css">
#modal1{
padding: 30px;
}
</style>
<div style="float: right;margin-right:1.3em"><h5> Associate With Us<hr></h5> <br><a style="margin-top:-1.8em;margin-left: 45px" class="waves-effect waves-light btn modal-trigger" href="#modal1">Join us</a>
</div>
<div id="modal1" class="modal" style="width: 40%;height: 100%">
<div style="background-color: #26a69a; padding-bottom: 2px;padding-top: 2px" class="modal-content">
<center><h5 class="modal-title">Get Associated With Us </h5></center>
</div>
<div class="modal-body">
<form accept-charset="UTF-8" action="" method="post"><div style="display:none"></div>
<div><h4 style="padding-top: 15px" class="center"> Basic Details </h4>
</div>
<div class="field">
<input type="text" name="Name" style="border-radius:5px;" placeholder="Person Name" required><br><br>
</div>
<div class="field">
<input type="text" name="designation" style="border-radius:5px;" placeholder="Designation" required><br><br>
</div>
<div class="field">
<input type="text" name="contact" style="border-radius:5px;" placeholder="Company Details" required><br><br>
</div>
<div class="field">
<input type="email" name="email" style="border-radius:5px;" placeholder="Email Id" required ><br><br>
</div>
<div class="field">
<input type="text" name="phone" style="border-radius:5px;" maxlength="10" placeholder="Phone No." required><br><br>
</div>
<div class="field">
<input type="text" name="add" style="border-radius:5px;" placeholder="Address" required><br><br>
</div>
<center> <div class="actions">
<input class="btn btn-primary btn-lg" name="commit" type="submit" value="Submit" style="width:200px" />
</div></center>
</form>
</div>
</div>