Contents

 
Home
PHPRunner 6.1 manual
Prev Page Next Page
 
 

Redirect to user info edit page

 

To redirect to the user info edit page use the following code in Login page: After successful login event.

yellowbulbNote: Change the values listed in red to match your specific needs.

global $dal;

$tblUsers $dal->Table("UserTableName");

$rs = $tblUsers->Query("UserNameField='".$username."' and 

  PasswordField='".$password."'","");

$data = db_fetch_array($rs);

header("Location: tablename_edit.php?editid1=".$data["IDField"]);

exit();

For more information about using Data Access Layer (DAL), see Data Access Layer.

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)