AutoLogin |
1/19/2009 08:19:49 | |
| PHPRunner General questions | ||
|
N
netmedia59 author
Hello, |
||
|
J
|
Jane 1/20/2009 |
|
Hi, global $conn; if (@$_REQUEST["username"] && @$_REQUEST["password"]) { $rs = db_query("select * from UsersTable where username='".$_REQUEST["username"]."' and password='".$_REQUEST["password"]."'",$conn); if ($data = db_fetch_array()) { //fill session variables here and redirect to the menu page } } |
|
|
N
|
netmedia59 author 2/2/2009 |
|
Hello Jane, |
|
|
J
|
Jane 2/2/2009 |
|
Hi, global $conn; if (@$_REQUEST["username"] && @$_REQUEST["password"]) { $rs = db_query("select * from visiteurs where Email='".$_REQUEST["username"]."' and Password='".$_REQUEST["password"]."'",$conn); if ($data = db_fetch_array()) { //fill session variables here and redirect to the menu page $_SESSION["UserID"] = $_REQUEST["username"]; header("Location: menu.php"); exit(); } }
|
|
|
N
|
netmedia59 author 2/3/2009 |
|
Thank you very much Jane, Hi, here is a sample link: wwww.mywebsite.com/login.php?username=yourusername&password=yourpassword Here is a sample code: Here is a list of all PHPRunner session variables: http://www.xlinesoft.com/phprunner/docs/ph...n_variables.htm |
|
|
N
|
netmedia59 author 2/4/2009 |
|
Hello, |
|
|
J
|
Jane 2/4/2009 |
|
Hi, $_SESSION["AccessLevel"] = ACCESS_LEVEL_USER; $SESSION["TableName_OwnerID"] = $_REQUEST["username"];
|
|
|
N
|
nickc25 2/10/2009 |
Hi, I suppose you need to fill $_SESSION["AccessLevel"] and $_SESSION["_TableName_OwnerID"] (if you use User can see and edit their own records only security method on the Security tab) variables. where TableName is your actual table name.
|
|