How to send data from Greasemonkey to a PHP (WAMP) server?
问题 I am creating a Greasemonkey script where I am calculating six variables (time, move, scroll, sav, prin, book and url). I need to send these variables' data to my PHP page so that these could be inserted in a MySQL table using a WAMP server. Please, can anyone give the exact code to it as I am new to all this? My Greasemonkey script is: {var ajaxDataObj = { s: sav, p: prin, b: book, t: finalTime, u: url, a: totalScroll, b: tot }; var serializedData = JSON.stringify (ajaxDataObj); GM