No success or error functions working.

The work within the PHP, just the AJAX doesn't decode them properly and always goes to the onError function. Hard coded to always display success and redirect to main page.