Using Ajax to Send Data Back to the Server

I understand there is a method \[code\]send\[/code\] for \[code\]xmlHttpRequest\[/code\] objects, but I've been working on this site all day and I'm unable to find any halfway decent tutorials on the subject and my brain feels like mush. Ajax is hard.What I'm trying to do is send data from one Javascript file back to a PHP script on the server, where the data is simply a string and a small number. Is this possible? Why can't I find a good article on the subject?tl;dr How do I use the \[code\]send\[/code\] method to pass a string and a number from a javascript file to a php file?
 
Back
Top