Need to get variables from current page

I am making a flv uploader and I need to get some variables that are currently on my php page where this uploader exists. It looks something like this:


I need to somehow get cid, sid, and tid in that flash movie so when I upload the FLVs it tell the database where to put them. Any idea?