how to change url after submit form? |
[eluser]liren[/eluser]
Hello friends: I have a submit form in a page,when user submit form data,the url change to http://localhost/usermanage/usersubmit Now,I want to change the url to http://localhost/usermange/otherURL(for example:http://localhost/home/index). how to do it? How to change the controller code to do this?Thanks!
[eluser]WanWizard[/eluser]
If you want to post the form to another URL, change the action in the form. If you want to go to that other URL after processing the form, use redirect(). |
Welcome Guest, Not a member yet? Register Sign In |