Using frames plus forms for tests

D

Dave White

Hello everyone,

My first time posting to the group.

I am using frames.

I'm presently using html to develop lesson plans for ms Excel. I also
give a short quiz at the end of each lesson.

I would like my students to page back and forth beween the each quiz
and related lesson to answer the quiz questions.

Each time I page back to the quiz it reloads the quiz.htm file and
blanks out the quiz answers.

How can I page back and forth between two .htm files without blanking
existing data in the formp.

Thanks in advance,

Dave White
 
A

Adrienne Boswell

Hello everyone,

My first time posting to the group.

I am using frames.

I'm presently using html to develop lesson plans for ms Excel. I also
give a short quiz at the end of each lesson.

I would like my students to page back and forth beween the each quiz
and related lesson to answer the quiz questions.

Each time I page back to the quiz it reloads the quiz.htm file and
blanks out the quiz answers.

How can I page back and forth between two .htm files without blanking
existing data in the formp.

Thanks in advance,

Dave White

You need to do it server side, HTML is stateless so cannot help you.
Actually, you might be able to do it client side, but server side is
better because a) it does not depend on the client having the correct
settings, b) it's harder to spoof (but be watchful of SQL injection).
 
R

Roy A.

Dave White skrev:
Hello everyone,

My first time posting to the group.

I am using frames.

I'm presently using html to develop lesson plans for ms Excel. I also
give a short quiz at the end of each lesson.

I would like my students to page back and forth beween the each quiz
and related lesson to answer the quiz questions.

Each time I page back to the quiz it reloads the quiz.htm file and
blanks out the quiz answers.

How can I page back and forth between two .htm files without blanking
existing data in the formp.

That's a hard question to answer. Basical you have to collect the
answers. That you can do with a form element. These answers have to be
accessible next time you are visiting the same page. You could du that
by submitting the answers to the server, and let a script on the server
save these answers. Or you could save the answers in a cookie.

Each time you visit a page, a script would have to fill inn the form
with answers that is saved. I think this is of topic, so here is a
link:

http://www.acky.net/tutorials/javascripts/cookies

You may get a better answer by posting to a JavaScript (or server side
scripting) group.

I'm not sure, but I think you may have to include a
document.formname.submit() in the onclick attribute on the "back" and
"forth" links to ensure that the last entered value is collected, eg.:

<a href="back.htm" onclick="document.formname.action='back.htm';
document.formname.submit(); return false">back</a>.
 
D

Dave White

Thanks for your input. At this point in time server side is not an
option. Perhaps I can use Javascript.

Good Luck,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top