REDIRECT AFTER LOGIN |
8/17/2009 09:53:39 | |
| PHPRunner General questions | ||
|
C
chinwag author
Hi, http://www.domain.com/project/table_list.php?a=search&value=1&SearchFor=$_SESSION["GroupID"]&SearchOption=Equals&SearchField=CITY
|
||
|
M
|
MaxxaM 8/17/2009 |
|
I think the best approach would be to look at your List Page: Before SQL query event. You already know what group(city) is, so try this: |
|
|
C
|
chinwag author 8/17/2009 |
|
thank you for your reply, but I don't see how this will help with the redirection to the filtered list after login. Or maybe I am being stupid!! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=43496&image=1&table=forumreplies' class='bbc_emoticon' alt=':lol:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=43496&image=2&table=forumreplies' class='bbc_emoticon' alt=':unsure:' /> |
|
|
M
|
MaxxaM 8/17/2009 |
|
In the example I gave you, it's not a redirection...it is handling the sql as the page is loading. So you would look at the Event on the list page that pulls up after login...because the system will know who the user is and what group they are associated with, you can put the code in the Event and it will handle it. |
|
|
C
|
chinwag author 8/18/2009 |
In the example I gave you, it's not a redirection...it is handling the sql as the page is loading. So you would look at the Event on the list page that pulls up after login...because the system will know who the user is and what group they are associated with, you can put the code in the Event and it will handle it. In the example you gave me, the redirection was opening table_list.php. In PHP Runner, go to the events table for the table in question... The event is: List Page: Before SQL query The code you need to place in there is: $strWhereClause = whereAdd($strWhereClause,"City = '".$_SESSION["GroupID"]."'"); I hope I'm being clear enough, if you're not following or if I'm not going the direction that works for you, hopefully someone else can help. I've been in the position you have before and this worked for me.
|
|