On/off switch with AJAX to edit database
===

I would like to make an ajax on / off switch that edits a value in the DB. Now i found this tutorial: http://papermashup.com/jquery-iphone-style-ajax-switch/ which i followed, but i don't know how to make a connection that edits a value in my DB. 

Never used AJAX before, could someone explain this to me?

Thank you very much!

