你的 代码呢???没有代码很难解决:事例代码:
<?php
if($_GET['mode']=="quit")//接收mode值并判断
{
//显示窗体
}
else
{
session_unset();//清空SESSION,删除的话用destroy
header("location: http://网站首页");
}
<?php
if($_GET['mode']=="quit")//接收mode值并判断
{
//显示窗体
}
else
{
session_unset();//清空SESSION,删除的话用destroy
header("location: http://网站首页");
}
解决方案 »
- 有谁懂得zend解密后的混淆代码处理的?
- PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。
- 有一段OBJECT的代码.我想放到Form中,不知道要怎么放..
- php如何将url参数里面比如(name=%D2%A6%C1%C1)中文编码转换回中文
- 用户要求按周按月结算一次,应该怎么来计算判断呢?谢谢
- 怎样判断insert是否成功呢?
- 调程序时一个错误的问题
- 我在用什么GD library用php输出图片, 它提供的字库很少, 哪里有字库下载?
- 对 MySQL 的 SHOW TABLE STATUS
- php实现2个数组输出问题
- 代码不懂
- PHP 如何使用 mssql_fetch_object
<?php
if($_GET['mode']=="quit")//接收mode值并判断
{
//显示窗体
}
else
{
session_unset();//清空SESSION,删除的话用destroy
header("location: http://网站首页");
}
<?php
session_start();
if($_GET["mode"]=="quit"){
$_SESSION["uid"]="";
$_SESSION["pwd"]="";
header("location:../index.php");
exit();
}
?>
好像如果没有传递MODE到这个页面的话,会报错,否则不会,该怎么办?
session_start();
if(isset($_GET['mode']) && $_GET['mode']=='quit')
{
$_SESSION['uid']=$_SESSION['pwd']=null;
exit(header("location:../index.php"));
}
?>
if(isset($_GET['mode']) && $_GET['mode']=='quit')
isset($_GET['mode']) && $_GET['mode']=='quit'
是什么意思吗?
Get里面有mode,然后mode一定要是quit才成立!