Simple way of making an MS excel-esque 'if text box = ? then...." type function?
Hi all,
Firstly I'm competent in HTML and CSS, but other than copy/paste type implementation am an absolute novice at everything else, so if achieving this is going to be way outside my capability please just let me know!
I am hoping to put together an online quiz, with each question consisting of some form of media (image/audio/video/etc.) beneath which there will two questions and two text boxes in which to type an answer. For example a picture of Van Gogh's Sunflowers beneath which it will say 'Name this artist...' beneath that a text box, then beneath that 'Name this painting...' and beneath that another text box. Beside each of the answer text boxes a second box where a score will be generated if the answer entered matches a stored answer.
What I would then to do is have some script that says: If text box 1A equals 'Vincent Van Gogh' or 'Van Gogh' then box 1B equals '1' so it shows a point if they enter the correct answer, but nothing happens for a wrong answer. Then a total box that acts as a running total (like the autosum function in excel) so box content =1B+2B+3B etc. etc. where a blank box counts zero and boxes with 1 in get added up as a running total score.
I am hoping that if each box is given a unique ID this should be fairly simple... crosses fingers!
(The usage will be just for fun and in single sessions so no need for log ins, maintaining score for new sessions, or worrying about people viewing answers by viewing source)