some body in an other post helped me with this problem, sending variables to an other page.using $_SESSION.. it worked>>, but only when i search for one record only, becouse the SESSION takes the id number that i will use in an other page when user click on "Edit".. now when i show all the records in a table, there will be one more column that have the word 'Edit'so when you find the record in the table just click on "edit" to take you to the edit page, so i did like this in the first page: print ("<td><a href=\"edit2.php?id='$db_field[id]'\">Edit</a></td></tr>" ); when you click on "Edit", you jump to the page Edit2.php, taking the variable 'id'. the problem is this: in the page edit2.php, the variable id is shown in the address bar, but an error keep happenning..UnDefined Variable id in line... i found its strange: why the program can not see the variable id, although it appears in the address bar!!