Send Data (not in form) to PHP

Hi, I’m pretty new to flash, and have a bit of a problem, so any help would be very helpful.

I have a page on my website that allows users to download some files using filereference. When the user clicks on the button to start the download, I want to pass the name of the button (the name of the file they are downloading) to a php script to put in my database, so I have a record of who download what.

I have no problems passing normal form data to php using the loadvariables, but since I want to send info that is not an input text box, I have no idea how to go about doing this.

Any help or suggestions on how to do this would be great. Thanks so much!