Open file based on user input - what's the best way?
Posted: Wed May 28, 2008 11:09 am
Scenario:
A user has a 6 digit number (ex: 123456) and I know the user's name is Bob. 2 other users have numbers (ex: Mary - 552233 and Ron - 987654). I want the user to enter his first name and number to open a web page. There are only going to be 3 users and each should have a unique static page based upon their number and name. Since the number of users is small, I don't want to use a database. I was thinking either inline PHP logic or an external file to store the user's name and number. If someone doesn't know the name and number, they should be presented the "login" page again.
What is the best quick and dirty way to do this? It doesn't have to be pretty. Your suggestions or examples would be greatly appreciated.
A user has a 6 digit number (ex: 123456) and I know the user's name is Bob. 2 other users have numbers (ex: Mary - 552233 and Ron - 987654). I want the user to enter his first name and number to open a web page. There are only going to be 3 users and each should have a unique static page based upon their number and name. Since the number of users is small, I don't want to use a database. I was thinking either inline PHP logic or an external file to store the user's name and number. If someone doesn't know the name and number, they should be presented the "login" page again.
What is the best quick and dirty way to do this? It doesn't have to be pretty. Your suggestions or examples would be greatly appreciated.