In my HTML form I need the URL output like this: "example.com/mycontroller/action/mike/apple"
- When I submit form with "post" my form values are not visible and can be get through "_POST". I don't prefer this because it makes output like this: "example.com/mycontroller/action/"
- When I submit with "get" my form becomes "example.com/mycontroller/action?type=mike&key=apple"
- I also don't prefer to change form action with javascript, like: "onSubmit take value of select and append it to form action" Because I don't want this snippet be javascript dependent.
I can submit form with "get" or "post" parse system variables of POST or GET and make a redirection. Like this: Redirect this "example.com/mycontroller/action?type=mike&key=apple" to this "example.com/mycontroller/action/mike/apple" But I didn't find this solution well designed. Is it possible to pass form values with slashes (other than questiın marks)
< form class="well form-horizontal" id="myform" method="get" action="/mycontroller/action" > <select name="type" id="type"> <option value="mike" selected="selected"> mickey bricks</option> <option value="albie">albert</option> </select> <input type="text" name="key" class="input-xlarge" id="key" required="required"> <button type="submit" class="btn btn-primary" id="submit"> submit </button> </form>