Post sensor data to database

Hello everyone ,
i need help...i have a project were i'm using a pir sensor ,a tilt switch and an ac check..
i need help with how i can post the data from these sensors captured to a database ,like a database within the XAMPP server.

I think the best way is by sending an http POST request to your server.