Welcome Guest, Not a member yet? Register   Sign In
Wierd posting error with forms
#1

[eluser]Ashes-to-Ashes[/eluser]
Does form validation date from the form_validation class pass from a method to a called method?

ie

if I call menu method with submit and it calls form_processing method, will form_validation checks work within form_processing ?

So, user would go to index.php?controller/menu/action/action_name

if action_name is a form action, then form processing would be called (form_processing method)
and it would get the data... no problem, and submit back to the menu, which would then go...
hey need to send this back to the hidden function form_processing... and it would check to see
if input was valid and act upon it.


I will try to clean up this question as it becomes clearer, but I tested with a simple wrapper that called a form method (function) and it seemed to work, so I am wondering if I have a logic error or if their is some other thing ...
#2

[eluser]Ashes-to-Ashes[/eluser]
Yes. form_validation->run() works on the last submitted form, regardless of where it was called from as far as I can tell.




Theme © iAndrew 2016 - Forum software by © MyBB