php 网页跳转不过去怎么回事

qq_16381249 2014-12-05 02:23:52
首页提交代码
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>你好</title>
</head>
<body>
<form action="__URL__/zhuce" method="post">
控制块
<?php
// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action {
public function index(){
$this-> display();
}
public function zhuce(){
$this->display();
}
}
?>
跳转页面
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>你好</title>
</head>
<body>
adfasfasfasf
</body>
</html>
...全文
450 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_16381249 2014-12-06
  • 打赏
  • 举报
回复
提交页面完整上传了 求方法 弄了几天了 没搞明白 跳不过去 老提示 这个 Not Found The requested URL /App/Index/zhuce was not found on this server.
qq_16381249 2014-12-06
  • 打赏
  • 举报
回复
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>你好</title> </head> <body> <form action="__URL__/zhuce" method="post"> <table cellspacing="3px" style="width:100%"> <tr> <td align="right" colspan="1" rowspan="1" style="padding-right: 3px;"> <label>用户名:</label> </td> <td colspan="2"> <label><input type="text" style="width: 212px;"/></label> </td> <tr> <tr> <td align="right" colspan="1" rowspan="1" style="padding-right: 3px;"> <label>密码:</label> </td> <td colspan="2"> <label><input type="password" name="password" style="width: 212px;" /></label> </td> <tr> <tr> <td align="right" style="padding-right: 3px;"> <label>验证码:</label> </td> <td> <label><input type="text" style="width: 101px;" /><img src='__APP__/Public/verify/' /></label> </td> <tr> <td align="center" colspan="2" > <label><input name="send" value="登录" type="submit" style="height: 20px" ></label> <label><input name="chongzhi" value="重置" type="reset"style="height: 20px"></label> </td> </tr> </table> <?php echo " __URL__: 会替换成当前模块的URL地址(不含域名)"; ?> </form> </body> </html>
indexroot 2014-12-06
  • 打赏
  • 举报
回复
不知道你在用什么框架,如果你用的是ThinkPHP(看起来像是thinkphp3.1), 你写的在一楼你写的“首页提交代码“和”跳转页面“ 应该是 App/Home/view/index下面的两个模板index.html 和zhuce.html ”控制块“应该是 App/Home/Controller下面的IndexController.class.php 我试了下,能正常工作,没有问题。 你可以打开调试模式 (入口文件里面 加上 define('APP_DEBUG',True); )看下框架输出的trace信息 并把 App下面的Runtime里面的东西全删掉。 再试一下。
傲雪星枫 2014-12-05
  • 打赏
  • 举报
回复
首页提交代码,把完整代码打出来看看。现在的不完整。
livearn 2014-12-05
  • 打赏
  • 举报
回复
form标签差一个</form>? 表单要放到body里吧。。。 url定义路径确定对了?
断点Bingo 2014-12-05
  • 打赏
  • 举报
回复
提示什么错误?
断点Bingo 2014-12-05
  • 打赏
  • 举报
回复
提示什么错误?

21,893

社区成员

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

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