Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Automatic form submission
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

K
Starting Member

14 Posts

Posted - 14 June 2001 :  08:03:24  Show Profile
Hi,

I have a page that displays a book for editing and has buttons for updating the book, adding a member, removing a member and going back.

At the moment, when you add or remove a member, you are taken to a page to select the member, then you submit that form to a page that does the DB work and redirects back to the edit book page, where the page is redisplayed with the new member appearing in the right place.

However, if you make changes to the fields on the editing page, and then decide to add a member, any changes you might have made are lost when the you go on to add/remove the member because of the redirect which doesn't pull through the form values.

What I would like to do, is to pass through hidden fields from the edit book page, via the add/remove member page, and then on to the DB work page before returning to the edit book page again.

I can get as far as the DB work page, but as that is all behind the scenes, and does a redirect, there is no form submission. I have tried putting the hidden fields in the page and at the appropriate point using frmName.submit() to post back, but it doesn't work.

I can't use the form method 'get' because of a token that is appended via a call to another function and there are really too many fields to want to do this anyway.

Any ideas???

paco
Junior Member

Spain
187 Posts

Posted - 14 June 2001 :  09:08:29  Show Profile
Maybe this is not what you want but you could use Session variables to pass values.

Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 17 June 2001 :  00:56:19  Show Profile  Visit gor's Homepage
K,

The way you explain it makes it hard to really get a picture of what you want, but you might want to take a look at the post.asp page of the Snitz Forums.
There you can change the Screensize without losing the info you allready typed in the message field even though you didn't post the topic yet.
It might help.

Pierre
Join the Snitz WebRing
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07