• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP Help

FoolishMcNasty

Senior member
I have little PHP experience and need a bit of help.

I found a nice little PHP test application, but it doesn't do everything I need. It is a simple little multiple-choice exam, which scores the test when completed. I would like for the application to add the following function:

- if the score is less than a 70% (7 out of 10), the application needs to tell the tester to retake the exam and redirect them back to the test.
- if the score is 70% or greater, the application needs to congratulate the tester and send them back to the home page.

What would I to add to the code? Would I place the code in the function.inc file?
 
It would help to be able to see the code. Very likely, the PHP creates a web page that submits a form for the test. When the form is submitted, it is scored and the results are displayed. If you can find the code for displaying the results, it should be simple enough to add to it to also add text for the right message.
 
Back
Top