-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmy.php
More file actions
47 lines (32 loc) · 1.09 KB
/
Copy pathmy.php
File metadata and controls
47 lines (32 loc) · 1.09 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
37
38
39
40
41
42
43
44
45
46
47
<?php
require 'server_con.php';
require 'header.php';
if(isset($_GET['fname'])&&isset($_GET['lname'])&&isset($_GET['branch'])&&isset($_GET['Year'])&&isset($_GET['college'])&&isset($_GET['email'])&&isset($_GET['phone']))
{
$student_fname=$_GET['fname'];
$student_lname=$_GET['lname'];
$year=$_GET['Year'];
$branch=$_GET['branch'];
$college = $_GET['college'];
$forsolo = $_GET['forsolo'];
$forgroup = $_GET['forgroup'];
$infosolo = $_GET['infosolo'];
$infogroup = $_GET['infogroup'];
$cont= $_GET['phone'];
$email_id=$_GET['email'];
$fb = $_GET['fblink'];
if(!empty($branch)&&!empty($year)&&!empty($email_id)&&!empty($cont))
{
$query="INSERT INTO `outsiders` VALUES('$student_fname', '$student_lname','$year','$branch', '$college','$forsolo' , '$forgroup', '$infosolo' , '$infogroup' , '$cont','$email_id' , '$accomo' , '$fb')" ;
if($query_run=mysql_query($query))
{
echo 'YOU HAVE SUCESSFULLY REGISTER';
header('Location:register2.html');
}
else
{
echo 'try later';
}
}
}
?>