K
Starting Member
14 Posts |
Posted - 14 June 2001 : 08:03:24
|
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???
|
|