CodeIgniter Forums

Full Version: shoul i use redirect or view if validation error exists?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
when should i use redirect and view?

after user submit a form to a function called add(),
there's a validation inside of it,

what should i do? redirect back to a function that
display my registration form or should i load->view()

and if registration success should i make a new function that
display a successful page or should i load->view inside the add function.

i am so confuse.

pls help.

thanks.

El Forum

[eluser]PhilTem[/eluser]
Please no double- or cross-posting.

Go to your very similar thread