diff options
Diffstat (limited to 'sessionvars.php')
-rw-r--r-- | sessionvars.php | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sessionvars.php b/sessionvars.php new file mode 100644 index 0000000..8a17b9b --- /dev/null +++ b/sessionvars.php @@ -0,0 +1,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> |