Jump to content

Am I heading the right direction?


cs.punk

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/144891-am-i-heading-the-right-direction/
Share on other sites

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.