forked from students-alumni-cell-iitkgp/aam-2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-continue.php
43 lines (37 loc) · 1.44 KB
/
form-continue.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
if ($_SESSION["email"] != "" || empty($_POST['button'])) {
header('Location:form.php');
}
mysql_connect("localhost","root","") or die();
mysql_select_db("meetform") or die();
$email=$_SESSION['email'];
$arrDate=$_POST['arrDate'];
$arrSt=$_POST['arrSt'];
$trainName=$_POST['trainName'];
$trainNo=$_POST['trainNo'];
$accNo=$_POST['accNo'];
$iscab=$_POST['iscab'];
$cabWhere=$_POST['cabWhere'];
$cabWhen=$_POST['cabWhen'];
$accNo2=$_POST['accNo2'];
$accName1=$_POST['accName1'];
$accRel1=$_POST['accRel1'];
$accAge1=$_POST['accAge1'];
$accName2=$_POST['accName2'];
$accRel2=$_POST['accRel2'];
$accAge2=$_POST['accAge2'];
$accName3=$_POST['accName3'];
$accRel3=$_POST['accRel3'];
$accAge3=$_POST['accAge3'];
$prefName=$_POST['prefName'];
$prefYear=$_POST['prefYear'];
$prefDep=$_POST['prefDep'];
$prefHall=$_POST['prefHall'];
$query1="INSERT INTO travel set email='$email', arrivaldate='$arrdate', arrivalstation='$arrSt', trainname='$trainName', trainno='$trainNo', accompanyno='$accNo',
cabreq='$iscab', cabfrom='$cabWhere', cabat='$cabWhen' ";
$result1=mysql_query($query1);
$query2="INSERT INTO accommodation SET email='$email', accompanyno='$accNo2', accname1='$accName1', accrel1='$accRel1', accage1='$accAge1', accname2='$accName2',
accrel2='$accRel2', accage2='$accAge2', accname3='$accName3', accrel3='$accRel3', accage3='$accAge3', prefname='$prefName', prefyear='$prefYear', prefdep='$prefDep',
prefhall='$prefHall' ";
$result2=mysql_query($query2);
?>