<?php
include_once("ifcrossverify.php");
include_once("conn.php");$photopath=$_GET["photopath"];unlink ("$photopath");mysql_select_db("share");
$sql="delete from photo where photopath='".$photopath."'";
mysql_query($sql,$conn)
//header("Location:showdetail.php");
//echo "<meta http-equiv=refresh content='0; url=showdetail.php'>"; ?><script>
function ttt()
{
window.location.href="showdetail.php";
}
window.setTimeout("ttt()",2*1000);
</script>
为什么不能传session值过去呢?
session值包含在了include_once("ifcrossverify.php");里面
请大家帮忙,如果注释掉的办法可以用,也可以帮忙修改,谢谢啦
include_once("ifcrossverify.php");
include_once("conn.php");$photopath=$_GET["photopath"];unlink ("$photopath");mysql_select_db("share");
$sql="delete from photo where photopath='".$photopath."'";
mysql_query($sql,$conn)
//header("Location:showdetail.php");
//echo "<meta http-equiv=refresh content='0; url=showdetail.php'>"; ?><script>
function ttt()
{
window.location.href="showdetail.php";
}
window.setTimeout("ttt()",2*1000);
</script>
为什么不能传session值过去呢?
session值包含在了include_once("ifcrossverify.php");里面
请大家帮忙,如果注释掉的办法可以用,也可以帮忙修改,谢谢啦
include_once("ifcrossverify.php");
的内容如下:
<?php
ob_start();
session_start();
$s=$_SESSION["email"];
if(empty($s))
{
header("Location:page1.php");
}
?>