[Project_owners] XMLHttpRequest() object

Biju G C bijumaillist at yahoo.com
Thu Sep 11 04:55:45 EDT 2003


Hi,

  using XMLHttpRequest() object
  how can "POST" some information to a PHP script
  and how do i retrieve that info in PHP script.

I tried following.
   var p = new XMLHttpRequest();
   p.open("POST", "http://xxx.yyy.com/process.php", false);
   p.send("code=aaaa");
but, I was not able to capture data in php script

PS:  I was able to send data as query string.
   var p = new XMLHttpRequest();
   p.open("POST", "http://xxx.yyy.com/process.php?code=aaaa", false);
   p.send(null);

Thanks in advance.


________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


More information about the Project_owners mailing list