Welcome Guest, Not a member yet? Register   Sign In
help with two forms in one controller
#2

[eluser]theprodigy[/eluser]
Well, you could have your two forms submit to different functions and setup validation that way. Or you could place hidden form elements in your form and do something like:
Code:
if( array_key_exists( 'logged_in', $_POST ) )
{
    //run validation for 'logged in' form
}
elseif( array_key_exists( 'guest', $_POST ) )
{
    //run validation for 'guest' form
}


Messages In This Thread
help with two forms in one controller - by El Forum - 01-19-2010, 07:48 PM
help with two forms in one controller - by El Forum - 01-19-2010, 08:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB