Forums
This topic is locked
repeat region behavior
Posted 10 Nov 2003 20:15:32
1
has voted
10 Nov 2003 20:15:32 Dragos Crisan posted:
Hello,Here's what I'm trying to do: I have a simple form for submitting some user choices, and the choices are presented as a recordset with each field using a checkbox to indicate the user's choice. As such, the recordset is embedded within the form. I'm labeling each individual entry of the checkbox array, and everything works fine when I submit the form information...
Except that I have multiple records and I'm displaying them using the Dreamweaver MX repeat region behavior. The records span over multiple pages, and so when i submit the entire form, only the checkbox information from the current page gets sent. What would be the recommended method for passing the checkbox information from other pages as well? Do I need to turn the navigation buttons for the repeat region into individual forms so that they maintain the POST data?
Thanks!
Replies
Replied 11 Nov 2003 00:52:10
11 Nov 2003 00:52:10 Phil Shevlin replied:
Try not to double post....
Have you considered storing the data from previous pages in hidden form fields on subsequent pages... Then submit all the fields on the final page. Just a thought...
Have you considered storing the data from previous pages in hidden form fields on subsequent pages... Then submit all the fields on the final page. Just a thought...
Replied 11 Nov 2003 22:58:52
11 Nov 2003 22:58:52 Janusz Jasinski replied:
I did something similar, will try and look @ my code, but for now, try going through the macromedia website, newsgroups and maybe:
www.hotscripts.com
Janusz
======================
janusz.monkey-it.co.uk
www.xlibris.co.uk
ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe
www.hotscripts.com
Janusz
======================
janusz.monkey-it.co.uk
www.xlibris.co.uk
ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe
Replied 12 Nov 2003 01:40:42
12 Nov 2003 01:40:42 Dragos Crisan replied:
Thanks for the feedback! Storing the data in hidden form is not as option as I may be dealing with thousands of form fields dynamically generated, so that won't work. I found a field_forwarder function on one of the forums that I'm going to try and see if it works, otherwise I'll come back here and try again.
Replied 12 Nov 2003 22:35:24
12 Nov 2003 22:35:24 Dragos Crisan replied:
Update: I was able to make some minor changes to the function I mentioned to make it fit my particular application, and it works!!
Thanks again for the inputs!
Thanks again for the inputs!