Retaining user-entered values in forms

They have: 16 posts

Joined: Mar 2001

I have 7 forms related to one another. What I want is to allow the user to view what he entered when he jumps to a previous page of the form. How will I do this without using hidden variables, cookies or the Request collection of ASP?

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

How are you storing the info once submited on the previous pages?

They have: 16 posts

Joined: Mar 2001

I am currently storing the information in a database. I know this is not practical since users might return to a previous page and change the information they entered.

How will I be able to let users view the information they entered when they return to previous pages without using a database to temporarily store the information they entered (using ASP or JavaScript)?

They have: 133 posts

Joined: Sep 2000

I suppose that you can do it by making the javascript got o the "history.back(-1)" that should save it all when they come back...
make a link point to
javascript:history.back(-1)
and that should do the trick.

~Casper

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

If I'm not mistaken couldn't you just change the method on the forms to "Get" then all of the values would be part of the form url, and there for be embedded into the url in the browser's history.
Not 100% sure on it of course...not 100% sure of anything these dayz...but thats my shot at it.

Ken Elliott

Pimpin like a pimp with an electrofied pimpin machine!

merlin's picture

They have: 410 posts

Joined: Oct 1999

ken, that could be a way. but you should be careful when you have a lot of form-input. sometimes, you're url is getting too long (not sure how long it CAN be...).

Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.