PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hurray I got it lol.
but thats just for quiz1.php. Thankyou so much superdesign i read your post clearly and feys it worked. still having errors not giving me the rite output like who is the president of united states?
bush
when a user clicks show selected values it outputs you answer 0 out of 1 and gave me the rite answer even i clicked on bush. still thinking any advice would be great.
fastmike wrote:Hurray I got it lol.
but thats just for quiz1.php. Thankyou so much superdesign i read your post clearly and feys it worked.
Yay.
fastmike wrote:still having errors not giving me the rite output like who is the president of united states?
bush
when a user clicks show selected values it outputs you answer 0 out of 1 and gave me the rite answer even i clicked on bush. still thinking any advice would be great.
I'm missing something I guess; I have no idea what you're talking about.
$_SERVER['REQUEST_METHOD'] is in the $_SERVER superglobal. You can see what's in it via var_dump($_SERVER)
No idea what you're saying, but I'll give it a shot.
Your quiz asks them a question, and they submit an answer... If you tell them the answer later on, initiate a session at the start of the quiz and use the session to record their answers, and a database to determine their correctness.
If it asks them, then tells them the correct answer immediately, you could just have it output the correct answer, then compare the two.
If this isn't what you're asking, maybe you should ask again, clearly.
sorry guys. i was so happy that the script was working i dont even know what i was talking about so here we go again. i dont have any notices or any kind of warnings in my quiz1.php script. like i said in my previous post that i have a button where it says (show selected values). after completing the quiz user clicks on the button(show selected values) to see how much he scored. i have one question in my database which is
Q)who is the president of USA?
clinton bush regan
i click on the radio button bush and then i click on the button(Show Selected values) and this is what i get my output
*******************.
You scored 0 out of 1
Here are the answers:
who is the president of USA?
»you didn't select an answer. The answer is bush
************************
Even though i selected the correct answer bush. i dont know whats going on the script looks fine to me here it is .
lol spider man(feyd) get some mouth freshner J/k. anyways everything is working just fine now after i updated my quiz1.php and admin.php file. i can add questions in the database, i can take the quiz. i am having problem with my editquizlist.php file. i have a form which shows all the questions in the database and, in each question i have an option of edit(Editing the question) and delete(delete the question) from the database. my edit works but when i try to click on delete it does not delete the question from the database. here is my editquizlist.php file