This topic is locked

Go Straight to a List Page

1/31/2006 10:11:26 AM
PHPRunner General questions
R
renegadekn author

How would I go about sending a user that logs in straight to a list page instead of the opening menu.php page?
Thanks,
-Rob

prleo1 1/31/2006

Rob,
Open your login.php page and find the line
if($myurl)

header("Location: ".$myurl);

else

header("Location: ".str_replace(" ","%20","your_list_page_here.php"));

return;
...Replace your_list_page_here.php to the one you would like the users to be forwarded to.

Please take note, there is a section for hard-coded password and database password that has this snippet in it. Change the one that suits your setup.
I did, however, run into a problem with users who do not have access to that particular page. It will bounce them to the "You do not have permisssion...." page.

admin 2/1/2006

Rob,
also you can use AfterSuccessfulLogin event in PHPRunner 3.0

Use this code in the event:

header("Location: table1_list.php");

exit();
R
renegadekn author 2/1/2006

Thanks,
I'll give these a try.
-Rob