Anyone knows how to prevent direct URL Access for Submitting Form?
So I have routes like this
$route['registration']=administration/register
When I typed
localhost/myweb/registration
There's a database error, indeed that's because we directly access it by URL without submiting form. I have succeed set validation on my form to prevent database error, but that's in case user submit our form. When it comes user typing "registration", database error.
Well, for some work and pages, I just simple set SESSION as ADMIN or USER, to prevent direct URL access, but we can't do that to form, right?
Notes: My Form Submit data was fine, I just don't know how to prevent user typing "registration" as words of submit execution