在下初學php,現在有兩問題請教各位高手。

hnshuer 2003-09-16 04:54:26
在下初學php,現在有兩問題請教各位高手。
1,什麼編輯器編寫php最好?2,在php網頁中頁面的跳轉是怎麼實現,請給一些代碼演示之。
...全文
119 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuhb001 2003-09-16
  • 打赏
  • 举报
回复
editplus2
feel8 2003-09-16
  • 打赏
  • 举报
回复
editplus 好用我一直用的都是它。
方法一:header("Location: index.php");

方法二:echo "<script>window.location =\"$PHP_SELF\";</script>";

方法三:echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=index.php\">";

方法四:<?php
ob_start();
?>
html代码
<?
ob_clean();
include("next.php");
ob_end_flush();
?>

shuiaaa 2003-09-16
  • 打赏
  • 举报
回复
editplus编辑器
<html>
<meta http-equiv='refresh' content='0;url=a.htm'>
</html>
mrsun 2003-09-16
  • 打赏
  • 举报
回复
echo "<Script>";
echo "location.href='index.php';";
echo "</Script>";
indeed 2003-09-16
  • 打赏
  • 举报
回复
偶用editplus编辑器

跳转:
方法一:
<?
echo "<meta http-equiv='refresh' content='0;url=test.php'>";
exit;
?>
方法二:
<?
Header("Location: test.php");
exit;
?>

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧