Close but not exactly what I wanted..I think. I will let you have my litle code aswell, so I can explain my request abit better. This is a form that where the user puts in there username and password which is "linked" to another php page(see belowe) [code]<html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="dbsearch.php"> user:<input type="text" size="12" maxlength="12" name="user1"><br /> password:<input type="text" size="12" maxlength="12" name="password1"><br /> <input type="submit" value="submit" name="logg in"> </form> </body> </html>[/code] This is the php that the form is linked to. [code]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("untitled", $con);$result = mysql_query("SELECT * FROM userlogin");while($row = mysql_fetch_array($result)) { $userdb = $row['user']; $passdb = $row['password']; }mysql_close($con); $userfo = $_POST["user1"]; $passfo = $_POST["password1"]; if($userdb == $userfo and $passdb == $passfo){ $loger = 1; }else{ $loger = 0; } ?>[/code] Now I want to make a completly new php page but I want to get the value of the "loger" variable(s) in the new page from the old page above. so if the user on the last page did enter $userdb == $userfo and $passdb == $passfo right then the new page that I want to create should call the variable $loger with a value of "1", and if $userdb == $userfo and $passdb == $passfo was flase then the variable should have a value of "0". The problem is that I dont want to use and database or call any other inc files or so. Is this possible or will I have to make it another way? and please now you have the code. so if you have any ideas give me the full code,since im quite new to php so that whould make it much easier for me to understand and etc. Thanks!