CodeIgniter Forums
Best practise for multi step form ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Best practise for multi step form ? (/showthread.php?tid=78444)



Best practise for multi step form ? - Akdref - 01-20-2021

Hello every one,
What is the best practise to do a multi step form with codeigniter?
Have you got a tutorial link?


RE: Best practise for multi step form ? - kleber - 01-24-2021

(01-20-2021, 07:27 AM)Akdref Wrote: Hello every one,
What is the best practise to do a multi step form with codeigniter?
Have you got a tutorial link?

Hello. It depends.

You can use js (like http://www.jquery-steps.com) to split a single form and several (only visually) and at the end of the steps the user only submits a single form.

Or, you can create multiple forms. The first redirects to the second and so on. You can use a session to verify that the user in question has not skipped a required step.

Don't forget to validate each step.


RE: Best practise for multi step form ? - Akdref - 01-25-2021

(01-24-2021, 09:21 AM)kleber Wrote:
(01-20-2021, 07:27 AM)Akdref Wrote: Hello every one,
What is the best practise to do a multi step form with codeigniter?
Have you got a tutorial link?

Hello. It depends.

You can use js (like http://www.jquery-steps.com) to split a single form and several (only visually) and at the end of the steps the user only submits a single form.

Or, you can create multiple forms. The first redirects to the second and so on. You can use a session to verify that the user in question has not skipped a required step.

Don't forget to validate each step.

Hello,
Thanks for your answer it is a good idea