Welcome Guest, Not a member yet? Register   Sign In
Ajax and Data Insert Error
#2

[eluser]valarkin[/eluser]
hello newCodeIgntor, welcome to the forums!

Ok, a few things to cover here. You may wish to use the [ code ] [/ code] tags to better display what is code from your explanation. What it looks like to me is that you are making use of the raw $_POST variable and it has an extra field in it. This might be added by the form_remote_tag function. I am not sure because I have never used the ajax features yet. What I would suggest is doing some basic validation on the inputs and making use of the built in CI input library. You can access safe POST data through $this->input->post('fieldname'); If for some reason you don't wish to do all of that, as a work around you could simply unset($_POST['_']); to remove it from the array.


Messages In This Thread
Ajax and Data Insert Error - by El Forum - 08-09-2008, 02:59 PM
Ajax and Data Insert Error - by El Forum - 08-09-2008, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB