cs.punk Posted February 12, 2009 Share Posted February 12, 2009 Ok so I decided to build (just to gain some precious experience) a website which will have quiz of questions. One must register with your name and password before you can enter the quiz. Once you have registed, you login, take the quiz, and PHP checks your score, if it is high enough it adds you to the 'top ten' for everyone to see. Now to sum things up; index page.php (just with a link to everywhere) register.php (take your name and password and inserts it into the database) loginpage.php (starts a session and has a form for you to type your name and pass, it will then check the contents and if it matches a result in the database it assigns $_session['user'] to your username) playthegame.php (check if $session['user'] is set, if so show the 20 questions and after that send the details over to form_p.php) form_p.php (calculate score and if it high enough add it into the top 10 entries in the database with the username supplied by $_session['user'] Does that sound ok? Quote Link to comment Share on other sites More sharing options...
printf Posted February 12, 2009 Share Posted February 12, 2009 Sounds good to me, or should I say someone has their thinking cap on, 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.