-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsubmit.php
More file actions
35 lines (23 loc) · 784 Bytes
/
submit.php
File metadata and controls
35 lines (23 loc) · 784 Bytes
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
<?php
include("dbconnect.php");
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$title=$_REQUEST['title'];
$year=$_REQUEST['Year'];
$gender=$_REQUEST['gender'];
$fromdate=$_REQUEST['fromdate'];
$todate=$_REQUEST['todate'];
$people=$_REQUEST['people'];
$query=mysqli_query($db_connect,"INSERT INTO symbols(name,email,title,year,gender,fromdate,todate,people) VALUES('$name','$email','$title','$year','$gender','$fromdate','$todate','$people')");
if(!$query)
{ echo "<script type='text/javascript'>alert('Error in Submission! Try Again ');
window.location = 'index.php';
</script>";}
else
{
echo "<script type='text/javascript'>alert('Succesfully Submitted! ');
window.location = 'index.php';
</script>";
}
mysqli_close($db_connect);
?>