corbin Posted January 10, 2007 Share Posted January 10, 2007 So I'm making a quiz system, and I was wondering what the best approach would be with the quiz ids. It works were a user has to sign up to make a quiz, but anyone can take the quiz. Since the quizzes are public it would be easy for anyone to see quiz.php?id=7 and go hmmm I think I'll see what quiz 6 is, so would it be better to use random quiz IDs instead of ascending numeric? I would think it would definitely be better to use random IDs, but I'm not sure. So, any opinions would be appreciated, and if you think I should do them randomly, how long should the random string be? Should it be alphanumeric, or just numeric?Thanks,Corbin Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 10, 2007 Share Posted January 10, 2007 If they can take any quiz, why does it matter?If they can't take any quiz, use what you use to determine who takes what quiz, and check if they're eligible before showing it. If they're not, print an error. Quote Link to comment Share on other sites More sharing options...
corbin Posted January 10, 2007 Author Share Posted January 10, 2007 They can take any quiz, but I would personally be annoyed if random people started taking my quiz... Maybe I could give the quiz creators links like ?id=45&auth=ej2343 and if auth didn't match the value in the database echo something about invalid quiz ids... That would semi insure that the quiz maker did want the person there. Then again if quizzes are public, I guess I could just allow any test to be taken... Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 10, 2007 Share Posted January 10, 2007 There you go. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.