I'm trying to get this to instead of uploading files in a nice way and placing them on the server, to talk instead to some php that will (hopefully) place them into a MySQL database. I can get it posting just fine, but instead of returning anything useful - or succeeding - I get:
Error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
I do not know why. Firebug tells me it talks to the php just fine. I'm unsure how to extract the files which are posted under the name of "files[]" in php, to identify and handle them separately. I've not found any clear to understand method of extracting a posted array (I presume this is what it is?). Would this be causing the JSON.parse error, through not handling the end method well? Or is there something else going on before that?
New to AJAX, and now frustrated. Help appreciated.
Originating form looks like this
Which pastes to this php (currently does not a lot, yet)