• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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().


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.