Welcome Guest, Not a member yet? Register   Sign In
About is_ajax_request
#1

Hi! I'm new in Codeigniter, and I'm making this question because I didn't find anything about that.

So, I did an add comment system using Ajax in the view, that calls a function in my Post controller. I saw that if I went on "localhost/controller/function" I got a mysql error because some fields were "NULL". So I inserted 
PHP Code:
$this->input->is_ajax_request() 
but I was asking myself: can I bypass this check in some way? Is this secure? Can be spoofed? 

If you have some suggestion to protect my function I'll learn something new Tongue
Best regards!
Reply


Messages In This Thread
About is_ajax_request - by theedo - 07-17-2017, 01:09 PM
RE: About is_ajax_request - by skunkbad - 07-17-2017, 02:23 PM
RE: About is_ajax_request - by reactionstudio - 07-17-2017, 09:09 PM
RE: About is_ajax_request - by theedo - 07-18-2017, 02:10 AM
RE: About is_ajax_request - by natanfelles - 07-18-2017, 06:37 AM
RE: About is_ajax_request - by theedo - 07-18-2017, 01:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB