Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Misc

PHPrunner32x32     PHPRunner manual

Redirect to the profile edit page after successful login

Scroll Prev Next More


To redirect to the profile edit page after successful login, use the following code in the Login page: After successful login event.


Note: Change red values to match your project.


global $dal;
$tblUsers = $dal->Table("UserTableName");
$rs = $tblUsers->Query("UserNameField='".$username."' and
$data = db_fetch_array($rs);
header("Location: tablename_edit.php?editid1=".$data["IDField"]);

See also:

Data Access Layer

About Date Control API

Redirect to details page after master record was added

Redirect to another page


Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software