Flashpoints, Flashcoins, Whatever...HELP!

How would I make it so that when a button is clicked (in flash), the variable which contains the points are sent to a page using PHP? Just like nickpoints, or stuff like when you play flash games you get points and get to use em for whatever later. THANKS!!!