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
<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的地址 却是路径叠加啊
