I have made a connection between the drop down menu and the database which shows the current usernames in the rows. I then need to be able to click a box next to the menu that says go and then for it to redirect or refresh to a page with the selected usernames details. I have so far managed to get the selected user's name in the URL but i just need to know how to refresh the page and display a table or something with the users details?

code:

HTML PART:

<select id="name">
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("login");


$sql = mysql_query("SELECT * FROM staff");
while($name = mysql_fetch_object($sql)){
echo '<option value="'.$name->name.'">'.$name->name.'</option>';
}
?>
</select>


<input type="button" value="Go" onclick="showUser()" />

HEADER PART:

<script type="text/javascript">
function showUser(){
var name = document.getElementById('name').value;
window.location = '?name='+name;


}
</script>