include "./include/db.php"; include "./include/function.php"; if(isset($_POST["username"])){ $check_login = getResult("select * from user where login='".$_POST["username"]."' and passwd='".$_POST["password"]."'"); //$check_record = getResult("select * from t_ticket where tid='".$_POST["id"]."' and userid='".$check_login[0]["id"]."'"); if(isset($check_login)){ setcookie("ticket_id", $_POST["id"], time()+1800, "/", "avbuzz.com"); setcookie("ticket_uid", $check_login[0]["id"], time()+1800, "/", "avbuzz.com"); setcookie("ticket_pass", $check_login[0]["passwd"], time()+1800, "/", "avbuzz.com"); header("Location: register.php"); exit(); } } if(!isset($_GET["id"])){ $_GET["id"] = $_POST["id"]; } ?>
選擇活動名稱 | 尚餘門票 | 截止日期 | 已成功訂票名單 |
" . $ticket[$i]["name"] . " | ".$ticket[$i]["current_ticket"]." | ".date("d/m/Y", $ticket[$i]["due_date"])." | 已成功訂票名單 |
} ?>