Testing AJAX?

What is it in the PHP code makes you think that you would see “test type”?

This now has nothing to do with JavaScript. The webpage is confirmed to be successfully submitting your desired values as a POST request. Anything else is to do with PHP, so I direct you to the PHP Forum instead.