#1
  1. No Profile Picture
    atsitavd
    Guest
    Devshed Newbie (0 - 499 posts)
    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. #2
  3. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    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
  4. #3
  5. No Profile Picture
    atsitavd
    Guest
    Devshed Newbie (0 - 499 posts)
    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.

Similar Threads

  1. Saving to a .txt file...
    By Baltor in forum C Programming
    Replies: 2
    Last Post: January 8th, 2004, 04:20 PM
  2. Replies: 1
    Last Post: January 3rd, 2004, 09:53 PM
  3. run sql in .txt file in phpmyadmin
    By textileintellig in forum MySQL Help
    Replies: 1
    Last Post: December 31st, 2003, 12:35 PM
  4. executing perl file from php
    By arnab011 in forum PHP Development
    Replies: 1
    Last Post: July 18th, 2003, 10:53 AM
  5. file pointer at beginning of file....
    By ROT in forum PHP Development
    Replies: 9
    Last Post: August 3rd, 2000, 03:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo