请教各位大神 小弟迷惑了
thinkphp吧
全部回复
仅看楼主
level 6
userchenjian 楼主
<form method='post' action="thinkphp/index.php/User/modfiy">
<input type="hidden" name='id' value='{$data.id}'/>
姓名:<input type="text" name="username" value="{$data.username}"/><br />
性别:男<input type="radio" name="sex" value="1">女<input type="radio" name="sex" value="0"/>
<br/><input type="submit" value="修改">
我没单击一次提交 地址栏就在当前路径上加上thinkphp/index.php/User/modfiy
这样http://localhost/thinkphp/index.php/User/update/id/thinkphp/index.php/User/thinkphp/index.php/User/thinkphp/index.php/User/modfiy
这是怎么回事?不直接跳到action的地址 却是路径叠加啊
2014年04月08日 15点04分 1
level 6
userchenjian 楼主
2014年04月08日 15点04分 2
level 6
userchenjian 楼主
什么是小煎鸡?
2014年04月09日 14点04分 5
小煎鸡?
2014年04月10日 03点04分
回复 banhuajie :你说的啊
2014年04月10日 04点04分
level 1
表单里的提交地址可以这样写
<form action="__APP__/Admin/News/insert" method="post" name="form1" id="form1" >
2014年04月11日 07点04分 6
level 2
action=''就行了
2014年04月16日 15点04分 7
1