我有一个简单的html表单:
<form action="test/" method="get" accept-charset="utf-8">
<input type="text" name="first" value="" id="first">
<input type="text" name="second" value="" id="second">
<input type="text" name="third" value="" id="third">
<p><input type="submit" value="Continue →"></p>
</form>
当用户单击“提交”按钮时,我希望获得如下友好的URL:
在www.site.com/test/first/second/third在
我该怎么做?在
这应该行得通。它不会检查是否所有输入都已填充。在
用户在填写完表单并单击“继续”后的结束位置取决于您将
form
标记中的action
属性设置为什么。您当前已将其设置为test/
。在{{3}你可以使用{cd4}在视图中使用{1},或者你可以使用^ 3}来重定向{
相关问题 更多 >
编程相关推荐