I have a mysql database, with a php form. Normally, people use the php form on my website to add to the mysql database. I have been building a firefox addon to let them us
Jan Hančič is right : the best way is to use XMLHttpRequest.
Here's an example :
var xhr = new XMLHttpRequest();
xhr.open("post", "http://ex.ample.com/file.php", true);
xhr.onreadystatechange = function() {
if(this.readyState == 4) {
// Do something with this.responseText
}
}
xhr.send("var1=val1&var2=val2");
There are plenty of tutorials and references on the web about AJAX and the xhr object.