ok its probably something really stupid but any ways:
<?session_start();
$host = "localhost";
$user = "localhost";
$pass = "";
$db = "lof_uk_db";
$usercheck = $POST['login'];
$SESSION['usercheck'] = $usercheck;
then in another program:
<?
session_start();
$usercheck = $_SESSION['usercheck'];
$host = "localhost";
$user = "localhost";
$pass = "";
$db = "lof_uk_db";
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_select_db($db) or die ("Unable to select database!");
$query = "SELECT * FROM Province WHERE username='$usercheck'";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
if (!empty($usercheck)){
so isn't it supposed to be able to send the $usercheck variable over to the other program?