Search found 5 matches
- Fri May 30, 2008 3:33 pm
- Forum: PHP - Code
- Topic: Open file based on user input - follow up question
- Replies: 2
- Views: 414
Re: Open file based on user input - follow up question
Nope, not pulling from a database. Taking user input, verifying the name and pin are correct and then displaying a file. Working on some other files and had an epiphany. While the name may not be unique, the pin should be. I've just switched the variables around and will test it in a few. Should wor...
- Fri May 30, 2008 2:40 pm
- Forum: PHP - Code
- Topic: Open file based on user input - follow up question
- Replies: 2
- Views: 414
Open file based on user input - follow up question
Using the following code works for most of my scenarios but I've run into an issue. I have two users named Mary, each with a different ticket number. Using the following code, only the 2nd one can retrieve her files. I assume it is a case of last in resetting the variable $users and that is why Mary...
- Wed May 28, 2008 1:16 pm
- Forum: PHP - Code
- Topic: Open file based on user input - what's the best way?
- Replies: 5
- Views: 373
Re: Open file based on user input - what's the best way?
Quick follow-up question. Using this example, what is the best way to force the username to be all lower case? Should be as simple as running the username through strtolower, right?
Thanks for both your assistance and being patient with a newb!
Thanks for both your assistance and being patient with a newb!
- Wed May 28, 2008 11:54 am
- Forum: PHP - Code
- Topic: Open file based on user input - what's the best way?
- Replies: 5
- Views: 373
Re: Open file based on user input - what's the best way?
Panic, Very cool! I'll play around with this tonight. Next I'll try to figure out how to move the users to a flat file and see if I can make that work. I know it would be easier to create a MySQL table to store the info in and retrieve it but I want to make something portable. If this was something ...
- Wed May 28, 2008 11:09 am
- Forum: PHP - Code
- Topic: Open file based on user input - what's the best way?
- Replies: 5
- Views: 373
Open file based on user input - what's the best way?
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 b...