Well i figure out the way to check over my mysql database the users info and then if they match with i put the system let pass .
Here they are :
if($loggingIn)
{
$sql = "Select $useridField from $userTable where $useridField='$Username' and $passwdField='$Password'
and $companyField='$Company'";
if($debug) print "$sql<br>";
$userInfo = mysql_query($sql);
if($user = mysql_fetch_object($userInfo))
{
setcookie(userID, "" . $Username);
header("Location: $afterLoggedIn?user=" . $user->$useridField);
else
{
$error = "$errorMessage";
}
}
If you can see in the "header("Location:" i take the page from another file over the variable "$afterLoggedIn".
But the problem persist ....
In my sql database i has this kind of structure :
Database fields 5.
id
username.
password
company
area
Then let's say that i has this information under my sql now:
username: carlos
password: dummy
company: dummyland
area: http://www.dummyland.com
In the login.php screen i ask the user to enter his login+pass+company.
What i want to figure out is :
When he enter the correct information, let the system look at field "area" and put the page that i insert in there into the value "header("Location:??????)"
Someone can help , tell me how now make the system after check that the users are the true user grab this "area" info and put under header .
I trying hard, reading etc , put just can enter into my mind some way to make this ...
Thanks alot.
Also if you has good book indications please say =))