How can I select which page to display based upon a log-in?
I have created a page where the user will enter one of several codes. I wanted to use the login function and validate the code against a table that I have pre-loaded with these codes. The code entered would control which page was displayed to the user.
(I have identified a community of potential clients, and this group is broken down into 10 unique sub-groups. Each person receives a mail that includes one of 10 unique 'codes', which identify the sub-group. When the recipient calls up my website and enters the code (as a user ID), this will determine which of the 10 pages is displayed. If someone randomly enters (or mis-keys) a value into the promo field a default error page (page #11) would display.)
Is this possible using the log-in function. Now that I'm looking at the function, it appears that any successful log-in will be directed to the same page. If I can't use the log-in function, how can I accomplish this. In essence, I am looking for the successful codes to act as an "if . . .then . . .else . . " type of logic. Or, a successful hit on one of records in my table is akin to making a menu selection (that is not available in any other fashion).
Any help on this would be greatly appreciated.
BTW - kudos to David Powers and Charles Nadeau for the great tutorial on Setting up a PHP development environment for Dreamweaver!
