-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.php
More file actions
36 lines (34 loc) · 1.25 KB
/
request.php
File metadata and controls
36 lines (34 loc) · 1.25 KB
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
<?php
include "header.html";
?>
<div class="page-header">
<h1 style="margin: 2%">Techno-Tweet 2k16 <a href="technotweet.php">Go Back To Techno-Tweet page</a> </h1>
</div>
<?php
include "connect.php";
@$name = $_POST['name'];
@$email = $_POST['email'];
@$mobile = $_POST['mobile'];
@$college_name = $_POST['college'];
@$count = $_POST['count'];
if(!empty($name)&&!empty($email)&&!empty($mobile)&&!empty($college_name)&&!empty($count)){
if($connection) {
//INSERT INTO `request`(`id`, `name`, `email`, `college`, `mobile`, `count`) VALUES ('','Mahadev Vyavahare','mahadev.wce@gmail.com','WCE, Sangli','9096969220',5)
$query = "INSERT into request VALUES ('','$name','$email','$college_name','$mobile','$count')";
$result = mysqli_query($connection,$query);
if($result){
echo " <div class=\"alert alert-success\" role=\"alert\">Request Successful , we will reach to you soon</div>";
}
}
}else{
echo "<div class=\"alert alert-danger\" role=\"alert\">Fields should not be empty, Please feel details once again..!!</div>";
}
?>
<div class="jumbotron">
<center>
<img src="technotweet/images/poster.jpg">
</center>
</div>
<?php
include "footer.html";
?>