Help with my code in PHP Coding Help Posted September 8, 2013 My code is, <?php function getreg($id) {return file_get_contents('http://arcbots.com/userinfo.php?id='.$id);} function getID($reg) {return file_get_contents('http://arcbots.com/userinfo.php?reg='.$reg);} function lastseen($user) {return file_get_contents('http://arcbots.com/userinfo.php?lastseen='.$user);} function getdisplayname($user) {return file_get_contents('http://arcbots.com/userinfo.php?displayname='.$user);} function gethomepage($user) {return file_get_contents('http://arcbots.com/userinfo.php?homepage='.$user);} function getavatar($user) {return file_get_contents('http://arcbots.com/userinfo.php?avatar='.$user);} function getuserinfo($user) {return file_get_contents('http://arcbots.com/userinfo.php?info='.$user);} ?> <center>This will search a users ID and return the Registered name</center> <html> <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"> </form></center> <?php function display() { echo getReg($_POST['search']); } if(isset($_POST["search"])) { display(); } ?> </html> I have two quick questions: 1 - How would I output the returned information it gives me in a popup window. side note: I'd like to keep the original output on the page just incase their browser blocks the popup. 2 - How would I create a usable dropdown menu that can select what function they want to use
Help with my code
in PHP Coding Help
Posted
My code is,
I have two quick questions: 1 - How would I output the returned information it gives me in a popup window.
side note: I'd like to keep the original output on the page just incase their browser blocks the popup.
2 - How would I create a usable dropdown menu that can select what function they want to use