Client login

i did the tutorial on here for setting up a login
it works fine but i need mine to work slightly different
and i dont really know php

in my database i have 3 fields user, password and url
so when you hit submit on the user/pass screen it checks that to the database to make sure its valid and then i need it to launch the corresponding url

i dont know if i should have a variable passed back to flash and then launch it there, or if there is a way in php to launch a url

any help would be appreciated