Validation with redirect? |
[eluser]fakeempire[/eluser]
Hey guys -- I have a form I'm trying to use validation on but the form is dynamic. http://sitename/event/register/<?= $event_id ?> The form view pulls event specific stuff from the database depending on the event_id (title, date, description, etc). So there is not an actual 'form' view. So if validation fails I cannot just Code: $this->view->load('form'); Code: $this->view->load('form/<?= $event_id ?>') Code: $this->validation->set_rules($rules); Could anyone shed some light on this for me? A possible solution or let me know if I going about this the wrong way. Many thanks - .adam.
[eluser]Craig A Rodway[/eluser]
You could set the event ID as a hidden field in the form, and use this to check which form to load on the re-validation.
|
Welcome Guest, Not a member yet? Register Sign In |