|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I get a "resultpage" to display percent correct answers using values
from a txt-file generated from an interactive test? txt-file gets on the server after user has pressed "Submit Answer"-button. I want the user to see his result in percent on the "resultpage" wich pops up after pressed "Submit Ans". |
|
#2
|
|||
|
|||
|
If you want to generated a text file on the server, you need to look at a server-side language, rather than JavaScript, which is client-side.
You'd be better off posting in the CGI forum, or, if you have php3 on your server, in there. And you'll need to be more specific with your question. My suggestion would be to look at some of the polling CGI scripts available at cgi.resourceindex.com or similar, most of them will do what you're looking at right out of the box. All this assumes you have a host that supports CGI obviously. Cheers, adam |
|
#3
|
|||
|
|||
|
I've already got the test to generate a "result-file" in .txt format to the server.
I now want to use this .txt-file to calculate the percentage of correct answers given by the person taking the test, and then display his/her score in percent on the "thankyou-page", to wich they get when they have finnished the test. How do one do that??? Couldn't find any good cgi-scripts that were free. I've got a very restricted budget. Please help. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Percent correct answers from .txt-file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|