Welcome Guest, Not a member yet? Register   Sign In
How to sole the problem of accessing form action function directly in URL?
#2

[eluser]Glazz[/eluser]
You can check if a form was submited but why don't you place the logic in the create controller ?

Code:
function create_do()
{
    if($this->input->post())
    {
        // form submited, do the stuff here.
    } else {
        // form was not submited, redirect the user or show a message...
    }
}



Edit:

You can of course use the Form Validation library instead of the $this->input->post() ...


Messages In This Thread
How to sole the problem of accessing form action function directly in URL? - by El Forum - 03-25-2012, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB