My Spanish isn't the best, but this seems to be Mario's problem:
He has a form in Flash that asks for a login name and password. He then uses those fields to query a mysql database, but he doesn't know how to return the results of the query to the Flash page.
Maybe someone can answer his question using the universal language of PHP.
A Mario,
No se como hacer lo que quieres, pero he escrito te problema en ingles. Talvez,
alguien persona puede ayudarte.