Well yes, you can. You need PHP or node.js to do server sided scripting. (PHP is the most popular and known choice, but id rather have node.js)
Your webhost needs to support PHP (unless you are using a VPS, which you install PHP manually)
Use TCP magic to send the data, and the server to handle it.
TCPObject.send(%data @ "\r\n");
Not going to go indepth of TCP objects, may post a tutorial on TCP objects very soon, just got lazy on it.
Learn how to use PHP (variables functions ect), and Google up handing GET/POST requests in PHP + file writing