我想知道为什么这没有将我重新定位到联系页面?
<?php session_start(); ?>
<?php
function setSessions($page){
switch($page)
{
case "contact":
$_SESSION['contact_name'] = $_GET['name'];
$_SESSION['contact_address'] = $_GET['address'];
$_SESSION['contact_phone'] = $_GET['phone'];
header('Location:contact.php');
exit;
break;
case "employment":
break;
case "position":
break;
default:
break;
}
}
$current_page = $_REQUEST['page'];
setSessions($current_page);
?>
我很肯定它会在接触案例中进行。谢谢您的帮助
-编辑:NVM,它有效。谢谢!