请教关于页面跳转的问题! <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>三秒后转向前页";}?> 拦截post数据分析__一参不明,求解 ! snoopy中有个链接补全的功能,请问curl中有没有相应的函数呢? smarty嵌套模版的问题 xml解析 apache自动重启的问题 请教用PHP处理繁重任务即时显示结果的问题 session是不是必须有页面输出才可以正确赋值??? 如何接受来自iframe的数据? 网页中的数据传递? $_FILES[]是在文件上传前组装的还是等上传完成后才组装的? 关于编码的问题,大虾指教了 关于编写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>三秒后转向前页";
}
?>