<div class="habblet-container">
<div class="cbb clearfix red">
<h2 class='title' style='font-size:12px;text-align:left;font-family: "Tahoma",Verdana,Arial;'>Visit a user</h2>
<div style='padding-left:5px;padding-right:5px;padding-top:5px;'>
<?php
if(isset($_POST['username'])){
$username = mysql_real_escape_string($_POST['username']);
$query = mysql_query("SELECT * FROM users WHERE username = '".$username."' LIMIT 1");
if(mysql_num_rows($query) > 0){
$userinfo = mysql_fetch_array($query);
?>
<head>
<meta http-equiv="refresh" content="2;url={url}/home/<?php echo $username; ?>">
</head>
<body>
<div class="register border_y">
<div>
<span style="color:green;"> Loading.. </span>
<?php
}else{
echo "No user found...";
}
}
?>
<form method="post" >
<input type="text" placeholder="Username" style="border: 1px solid
#999999 ;border-radius: 3px;line-height: 20px;text-indent: 10px;width: 65%;" name="username" />
<input type="submit" name="submit" value="Visit" />
</form>
</div>
</div>
</div>