![]() |
Alexey admin 1/16/2007 |
Hi, if($data["UserType"]=="customer") { header("Location: customers_list.php"); exit(); } if($data["UserType"]=="wholesaler") { header("Location: wholesaler_home.php"); exit(); }
|
D
|
datapimp author 1/16/2007 |
wow .. thank you very much. You have saved me a lot of time <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=14621&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> |
D
|
datapimp author 1/17/2007 |
Hi, you can use After Successful Login event to direct users to different pages. Here is the sample code: where UserType is your actual field name in Login table. PHPRunner doesn't perform email verification. You can do this with a custom PHP script and PHPRunner events. There is a number of free scripts for displaying anti-bot pictures. This technology is called CAPTCHA. Here is the script your can use. http://www.puremango.co.uk/cm_php_captcha_script_113.php Use BeforeRegister event to check if entered word is correct.
|
J
|
Jane 1/17/2007 |
Hi, function AfterSuccessfulLogin() {global $data; if($data["usertype"]=="customer") { header("Location: chp_list.php"); exit(); } if($data["usertype"]=="host") { header("Location: dhp_list.php"); exit(); } } |
D
|
datapimp author 1/17/2007 |
thats betters.. that worked |