你的程序肯定是显示012的了
改成下面的试试<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="100; URL=1.htm">
<title>无标题文档</title>
<SCRIPT language=JavaScript>
<!--
var count;
var count_flag;
count_flag = 1
count=10;function showtime()
{
if((count==0) && (count_flag==1) ) {
window.location.reload();
} count=count-1;
if (count_flag==1)
setTimeout("showtime();",1000);
}//-->
</script>
</head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:showtime();">
<?php //初始化session变量
session_save_path(".");
// 检测session变量是否存在
if(!session_is_registered("url_num"))
{
$_session['url_num']=131;
}
if($_session['url_num']=="131")
$_session['url_num']="012";
echo $_session['url_num'];
if($_session['url_num']=="012")
$_session['url_num']="131";
?>
<?php
echo $_session['url_num'];
?></body>
</html>
改成下面的试试<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="100; URL=1.htm">
<title>无标题文档</title>
<SCRIPT language=JavaScript>
<!--
var count;
var count_flag;
count_flag = 1
count=10;function showtime()
{
if((count==0) && (count_flag==1) ) {
window.location.reload();
} count=count-1;
if (count_flag==1)
setTimeout("showtime();",1000);
}//-->
</script>
</head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:showtime();">
<?php //初始化session变量
session_save_path(".");
// 检测session变量是否存在
if(!session_is_registered("url_num"))
{
$_session['url_num']=131;
}
if($_session['url_num']=="131")
$_session['url_num']="012";
echo $_session['url_num'];
if($_session['url_num']=="012")
$_session['url_num']="131";
?>
<?php
echo $_session['url_num'];
?></body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货