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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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