Form URI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Form URI (/showthread.php?tid=38559) |
Form URI - El Forum - 02-11-2011 [eluser]bondjp[/eluser] Hi, i'm trying to get my url to show something like this when the user submits a form: http://example.com/controller/function/city/brand/model Here's my view: Code: <?php How can i do it? Form URI - El Forum - 02-11-2011 [eluser]Rok Biderman[/eluser] Well, there are 2 ways about it that seem reasonable to me. First is to do an action that takes values from the form and then redirects it. The other way I can think of is to build the action attribute using js (jquery). I think that it's all clientside so it should work. Code: function redirect() For js variant this link should get you started http://www.coderanch.com/t/121860/HTML-JavaScript/Checking-input-values-form-JQuery |