aboutsummaryrefslogtreecommitdiffstats
path: root/sessionvars.php
blob: 8a17b9b4c05bd7d2659179fcaa6905da03452fc7 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/table.css">
<title></title>
</head>
<body>
<?php
var_dump($_GET);
if( isset($_POST['cn']) )
{
	$_SESSION['cn'] = $_POST['cn'];
} else {
	unset($_SESSION['cn']);
}

if( isset($_POST['bl']) )
{
	$_SESSION['bl'] = $_POST['bl'];
} else {
	unset($_SESSION['bl']);
}

if( isset($_POST['ns']) )
{
	$_SESSION['ns'] = $_POST['ns'];
} else {
	unset($_SESSION['ns']);
}

if( isset($_POST['se']) )
{
	$_SESSION['se'] = $_POST['se'];
} else {
	unset($_SESSION['se']);
}

if( isset($_POST['no']) )
{
	$_SESSION['no'] = $_POST['no'];
} else {
	unset($_SESSION['no']);
}

if( isset($_POST['ur']) )
{
	$_SESSION['ur'] = $_POST['ur'];
} else {
	unset($_SESSION['ur']);
}

header("location:list.php");
exit();
?>
</body>
</html>