Jump to content

Quiz system and quiz ids


corbin

Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/33537-quiz-system-and-quiz-ids/
Share on other sites

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.