我有以下表格:
<form name="frmSearch" method="get" action="">
<input type="text" name="firstName" value="John" />
<select name="criteria">
<option value="-1">Select Criteria</option>
<option value="1">By Name</option>
<option value="2">By Email</option>
</select>
<select name="status">
<option value="-1">Select Status</option>
<option value="0">Inactive</option>
<option value="1">Active</option>
</select>
</form>
提交表格后。值如下所示在URL中:
http://www.example.com/index.php/search/?firstName=John&criteria=1&status=1
但我希望键值对中的URL如下:
http://www.example.com/index.php/search/firstName/John/criteria/1/status/1
任何人都可以帮我解决这个问题: