How do i store a form in a cookie?
I want to store the contents of a form in a cookie, can i do that?
I want to store the contents of a form in a cookie, can i do that?
You can do this using the cookies toolkit Store Entire Form in Cookie behavior
Is there a solution recipe for this? I can't seem to find one. And the section in the Cookies Toolkit features video on "Whole Form Cookie" is not loading. cookies-toolkit/ Everything else is playing but not that one part.
Troy
We will try to get that solution working as soon as possible. It looks like there may have been a problem linking to it in the new web site we launched. It should be working again shortly... for now you might want to look a that section of the help. It is a pretty simple feature to implement, so the help might be enough without the video.
Thank you. That did help with the binding of individual form elements. However, what I am trying to do is a bit more puzzling to me.
Basically it is this. I have a db table with about 6 columns. I have these records appearing just fine along with a photo, with the help of DA.
But now I need to allow the user to select 3 or 4 records by clicking on a check box for the records they want to populate on the next page.
Kind of like when you are shopping online and the site has a "compare" button. You checkbox a few items and then click "compare" and the next page shows just those items in a table, side by side.
So, do I use the form cookie method? Or am I going about this completely wrong?
Right now I have a record set query in bindings. And a repeating region with the inserted bindings. You can look at my current results so far if you want to. stretches_Results.php
The records are posting properly and I have a list search feature for filtering certain types of records. I just need to add the checkboxes.
The final goal for this page is to allow the user to select up to 6 "routines", click next and have those six or less records formatted for printing in a larger format. Kind of like the "details" page now, but with up to 6 chosen records.
Thanks in advance,
Troy
You would add the checkboxes and then use DataAssist search to filter the results on the details page based on the checkbox selection. No need for cookies, DataAssist search will filter the recordset and store the filter in a Session Cookie automatically.
Yes. I should have mentioned that I had been trying to do it that way but have been struggling to figure out the checkbox search feature.
In my DA Search Wizard help, when I get to the part where it mentions some kind of an issue in PHP that pertain to checkboxes, my help has a broken link or something.
But even before that, I am having trouble understanding what to bind the checkbox to, so that I can select multiple checkboxes and return all of them that are checked to a second page.
DA is a great extension but the search wizard is difficult for me to understand. The text and list option was pretty straight forward, but the checkbox isn't making sense to me. Are there any further tutorials or docs. on the search checkbox feature?
Troy
Here is the skinny on checkboxes.... if all of the checkboxes are named the same thing, and the name ends in "[]", like: name="myoption[]" then php will treat the checkboxes as if they are a multiple select list.
Then you can submit that form to a page with DataAssist search and use filter type "List" and use the list name "myoption". DataAssist search will do the rest.
Thanks Ray. Can I have this list type check box method on the same page that already has a search list for querying other keywords? If so, do I continue to add to the same search wizard or do I create a new one?
Do I give a value to the checkbox? When you choose "list" in the search wizard, it dims out the options to give values to the checked and unchecked state.
Lastly, should I move this topic to the DA forum since I have gotten off topic?
Thanks,
Troy
You can do whatever you want to support the desired effect.
You would have to give values to the checkbox of the ID or other key field to look up in the search to find the associated option in the resulting recordset.
And lastly... yes
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.