Not able to pass even a text constant to PHP using XMLHttpRequest
I was trying to pass a Javascript variable to PHP through POST xmlhttprequest but even a text literal is not working. I checked the answered question passing a javascript variable to PHP with xmlhttprequest but it did not work in…