Welcome Guest, Not a member yet? Register   Sign In
how to change url after submit form?
#1

[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!
#2

[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().




Theme © iAndrew 2016 - Forum software by © MyBB