So I have my code:

function getreg($id) {return file_get_contents(''.$id);}
function getID($reg) {return file_get_contents(''.$reg);}
function lastseen($user) {return file_get_contents(''.$user);}
function getdisplayname($user) {return file_get_contents(''.$user);}
function gethomepage($user) {return file_get_contents(''.$user);}
function getavatar($user) {return file_get_contents(''.$user);}
function getuserinfo($user) {return file_get_contents(''.$user);}
<center>This will search a users ID and return the Registered name</center>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/custom.css" />
<center><form method="post" />
<input type="text" name="search">
<input type="submit" value="get regname" name="submit">
function display()
echo getReg($_POST['search']);

It works fine but I was wondering is there any way to output the data that it gets to a popup window?

Second question: How would I create a usable drop down menu so they can select what function to use :/