Not sure why you need PHP for this, unless you want some other processing to be done before the user is redirected; otherwise, just a simple form will do that:
<form method="get" action="index.php">
<input type="text" name="id"><input type="submit">
</form>