Welcome Guest, Not a member yet? Register   Sign In
form to /controller/method/formfield1/formfield2
#1

[eluser]sshz[/eluser]
Hello.

I have a two field search form like

Code:
<form action="">
<input type="text" name="keyword" value="" id="keyword" maxlength="50"  />
<select name="location">
<option value="1">1</option>
</select>
&lt;input type="submit" name="" value="search"  /&gt;
&lt;/form&gt;

Is there any way I could submit this form to /controller/method/formfield1/formfield2 ?
#2

[eluser]TheFuzzy0ne[/eluser]
Not without using JavaScript. Why not submit the form to a controller method that extracts the arguments and then redirects to the new controller method?
#3

[eluser]sshz[/eluser]
[quote author="TheFuzzy0ne" date="1238345902"]Not without using JavaScript. Why not submit the form to a controller method that extracts the arguments and then redirects to the new controller method?[/quote]

Thanks, not the best way but the good one, I think.




Theme © iAndrew 2016 - Forum software by © MyBB