Please use the forum's [noparse]
[/noparse] tags when posting PHP code as it makes it much easier to read.
I can tell though that this line...
$username=mysql_real_escape_string(trim($_POST['Submit']));
...is probably not what you want. You'll want to supply the username POST variable, not the submit variable.
You also have two elements in your from named "submit". I'm not sure if name attributes are case sensitive or not, but I wager that this is not what you intended anyway.
<input name="submit" type="text" id="username">
<input type="submit" name="Submit" value="Get Details">
Change the name attribute in the first element to "username".
Remember, PHP uses the name attribute of elements for POST'd data, not the id attribute. To learn more about HTML attributes, click here or do a Google search.