-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateSession.php
33 lines (27 loc) · 1.01 KB
/
updateSession.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/styles.css<?php echo '?rnd_'.urlencode(time()).'='.urlencode(rand()); ?>"/>
<script type="text/javascript" src="script/jscript.js<?php echo '?rnd_'.urlencode(time()).'='.urlencode(rand()); ?>"></script>
</head>
<body>
<?php
include_once "connection.php";
session_start();
$room_htl_id = intval($_GET['room']);
$check_in_date = strval($_GET['checkIn']);
$check_out_date = strval($_GET['checkOut']);
$weekdays_stay = intval($_GET['weekday_days']);
$weeknights_stay = intval($_GET['weekend_days']);
$_SESSION['check_in_date'] = $check_in_date;
$_SESSION['check_out_date'] = $check_out_date;
$_SESSION['total_night_stay'] = ($weekdays_stay - 1) + $weeknights_stay;
//echo $check_in_date;
//echo $check_out_date;
echo "<script type='text/javascript'>viewHtlDetails($room_htl_id, $weekdays_stay, $weeknights_stay);</script>";
//echo "<button onclick='goBack()'>click me</button>";
mysqli_close($conn);
?>
</body>
</html>