close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do i store a form in a cookie?

Thread began 2/20/2009 12:03 am by Jason Byrnes | Last modified 8/26/2013 11:08 am by SPT | 11182 views | 25 replies |

jbyrnes266858WebAssist

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?

Sign in to reply to this post

jbyrnes266858WebAssist

cookies toolkit Store Entire Form in Cookie behavior

You can do this using the cookies toolkit Store Entire Form in Cookie behavior

Sign in to reply to this post

troyd331514

Video in Cookies Toolkit feature is not working

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

troyd

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

troyd

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

troyd

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

Sign in to reply to this post

Ray BorduinWebAssist

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

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...