Thread
:
XMLHttp Request problem
View Single Post
09-24-2012, 02:38 PM
PM User
|
#
3
devnull69
Senior Coder
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
Two mistakes
1. data is just a plain string. It should be in the format "key1=value1&key2=value2&...." so that you can access the data using $_POST["key1"] and $_POST["key2"] in PHP
2. Try to replace
this.responseText
with
xhr.responseText
devnull69
View Public Profile
Find More Posts by devnull69