too long

Basically i want to implement Search in the website,and the issue is that.

In the page that i implement the search in which information that is displayed on the page that will fetch from the database and,its depend on the ID that was come from the previous page.And that is perfectelly working.But when i am click on the search button, then page is again load and ID that come on the URL that vanised and errror is display where i fetch the data from database because ID is not getting.

Please help me out friends.And i am try to explain my problem.

Thanks to all friend's that view my question.

Now i am getting my solution.

<input type="hidden" name="id" value="<?php echo $id1 ?>">

//Here hidden field is used for the storing the ID that come from the URL.

$searchText = NULL;   //this variable is used for the Search input box.
$id1 = NULL;          //this variable used for the passing in query.
if(isset($_POST['submit']))
{
    echo $_GET['search'];
    $searchText = $_POST['search'];
}

if(isset($_POST['id']))
{   
   $id1 = $_POST['id'];    
}

Thanks friends to all for support me.

If you have a form Element for the search, you have to put all that incoming values, like id and page into hidden fields in that form, so the next page, processing the search, will have that information.