Jump to content

Recommended Posts

hey, uhhm i'm new to php and also a student, we have this final project given by our teacher, 
he did gave us this as the should be outcome of our project

 

link:  http://sir-ice.herobo.com/Register.php

 

i'm not asking you to give me the codes for the whole project (but will be glad if you do so lol) but i just want to ask, how come that there are several pages with same filename?

the "questions.php" appeared many times but different content.
,.any answer will greatly be appreciated..my grades depends on it haha
thanks in advance!  :happy-04: 

 

Link to comment
https://forums.phpfreaks.com/topic/275765-cant-seem-to-figure-this-out/
Share on other sites

I think it's funny that I answered all 10 questions correctly, yet it tells me I got 9/10 right.

 

He likely just saves the answers as session variables on each submission.  From what I can see, he randomizes the order the questions are asked, but maps them to a particular question number behind the scenes.  Look at the HTML questions.php generates: notice the hidden form element?  And how every question in it begins with "^question number"?  That's how he keeps track of what question has what answer.  It's not the most elegant solution, but it works.

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.