Jump to content

Counting variables and storing them in session??


Eritrea

Recommended Posts

Hi everyone. I am new to PHP and this form.

 

 

I am trying to create 10 questions in my website with PHP, in which a user will only answer just by using radio buttons, after submitting all,  he will be able to see how many answers he/she got right/wrong.

 

Now, what I need to know is that, how do you make PHP count all the right/wrong passwords and display message like: You've got 4/10 or 9/10....

 

How do you make an array ( If I am correct ) to count right/wrong of all submitted values in PHP??

 

 

I would like a simple example on this one.

Thanks for the help in advance.

I would like a simple example on this one.

 

Listen, this forum is not a place to get your scripts done for you.  You'll need to provide some sort of evidence you've tried this on your own, or you'll never find this community accepting of your posts.

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.