Flash php popup

I´m trying to send some values from flash to a php script and then create a popup with values that the php script gets from a mysql database. i know how to send the values from flash and how to search the database. but I cant figure out how to create the popup whit the values in it, is there a way to create a popup from php script?

this is how I would want it:

input from flash

search database

popup window with values