launch link automatically with php

HI all,
wonder if this is possible. i want to launch a link fron a database.
Here is what i want to do, i have a database with usernames and a URL link.
when the user type in their user name, the database will search for it and if there is the user the linkwillbe provided.
That be is striaght forward, what i want to do is automatically launch the link when the user name is found.
Ie launch the lnk automatically in a new window. POSSIBLE??

thanks in advice.

Yes, it is possible. Depending on how your database is set-up will determine the SQL command of course. Here is the code to load a page to a different php page.

<?php
  $URL = (LINK VALUE PULLED FROM THE DATABASE);
  header("Location: $URL");
?>

try

if(isset(username)) { echo “"; }

Sponsor our Newsletter | Privacy Policy | Terms of Service