Results/actionscript/PHP

Hi to all,

I have created a simple quiz in flash and I am having problems trying to use actionscript to take the times of each player and display the result as a list. Actually I dont know where to start. Basically when the user has finished the quiz the actionscript should determine the time that was finished and post the time along with other users times.
Basically all I need is a textbox that the user inputs his username, clicks a button and this would get the time that the user has finished the quiz and sort the best times.
Any ideas? Has anyone done this before or have any experience? Are there any tutorials or examples of how this can be achieved?

I think that php should be used for this purpose as well but I am a novice.
Has anyone implemented something like this before or knows a good tutorial I would be grateful.

Thank you for your time,
Any help is greatly appreciated.