请教关于页面跳转的问题! <script>function redirect(){ window.location.href='index.php';}window.setTimeout("redirect()",3000)</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你原来的代码是没有问题的,是不是content=\"3,url=index.php\"> 里面的都好不太对啊!我不太确定,但是你这种用法没有问题,我用过的。 帮我看看下面的代码在你们的机器上有没有我说的问题,我的有,谢谢<?if ( !IsSet($username) ){ echo "<form action=$PHP_SELF method=post> <input name=username> <input type=submit> </form> ";}else{ echo "<meta http-equiv=refresh content=\"3,url=$PHP_SELF\">"; echo "your are $username"; echo "<br>三秒后转向前页";}?> 上面的代码改为下面的代码估计就OK了.$PHP_SELF在现在默认安装的新版本下已经不能使用了.<?phpif (!isset($_POST["username"])){ echo "<form action=".basename($_SERVER["PHP_SELF"])." method=post> <input name=username> <input type=submit> </form> ";}else{ echo "<meta http-equiv=refresh content=\"3,url=".basename($_SERVER["PHP_SELF"])."\">"; echo "your are $username"; echo "<br>三秒后转向前页";}?> Array 关于缓存更新问题???高手快进啊 PHP开发手机3G页面,问题请教大虾 从数据库中读取长字段数据的问题,为什么只能显示前256个字符。 虚心请教怎样制作个人主页免费空间系统? 急!!win2003 中iis 设置问题 大家有什么比较好的免费PHP+MYSQL空间推荐? 请你帮我解释一下。 关于mysql的一个简单问题 PHP项目,注册页面求助,请各位大大帮助。。 关于编码的问题,大虾指教了 关于编写POP3客户端时遇到的问题.
if ( !IsSet($username) )
{
echo "<form action=$PHP_SELF method=post>
<input name=username>
<input type=submit>
</form> ";
}
else
{
echo "<meta http-equiv=refresh content=\"3,url=$PHP_SELF\">";
echo "your are $username";
echo "<br>三秒后转向前页";
}
?>
PHP_SELF在现在默认安装的新版本下已经不能使用了.
<?php
if (!isset($_POST["username"]))
{
echo "<form action=".basename($_SERVER["PHP_SELF"])." method=post>
<input name=username>
<input type=submit>
</form> ";
}
else
{
echo "<meta http-equiv=refresh content=\"3,url=".basename($_SERVER["PHP_SELF"])."\">";
echo "your are $username";
echo "<br>三秒后转向前页";
}
?>