Im trying to sending data to server, it's very simple, only name and score. Im using AJAX object, and test it on localhost. But what happened is, its not working. It triggers onComplete event (for the AJAX) but the data never get into the database.
i've tried manually the url in the browser, and it's work. But in one condition, on the .php file, im using $_GET instead of $_POST. If im using $_POST, either way doesnt work. it comes and error saying something about undefined index: error..
Can someone give me hint about this problem and how to solve it ? Really appreciate it ! Thanks