Copy link to clipboard
Copied
In Dreamweaver CS4, I've got a dynamic text field which is displaying a list of names from my Mysql database, using Repeat Region, and I've got some checkboxes next to the dynamic text field.
How do I assign/link the checkboxes so that it will match up to each individual name in the list? I just need some general pointers if poss please. Is it anything to do with PHP and Bind ID?
Many Thanks
Andy
Yes one line in repeat region will repeat the checkbox and add dynamic info for the value for each entry of the repeated region.
Copy link to clipboard
Copied
It has to do with the bindings window. You drag dynamic info from bindings window to checkbox value to bind the info from your dynamic text and create a dynamic value for the checkbox. So checkbox code will look like this inside repeat region:
<input type="checkbox" value="<php echo $recordset_name['value']; ?>">
add dynamic value for id and name of checkbox if required.
Copy link to clipboard
Copied
Thanks very much for that, and thanks for the quick response.
If it works, should I just have one row of data (ie link to the name and the binded checkboxes) whilst I'm editing in Dreamweaver, which will then display all the names and (individually linked) checkboxes from the repeat region on the live webpage?
Cheers again
Andy
Copy link to clipboard
Copied
Yes one line in repeat region will repeat the checkbox and add dynamic info for the value for each entry of the repeated region.
Copy link to clipboard
Copied
many many thanks for this
Andy
Copy link to clipboard
Copied
Is anybody able to help me a bit further with this please?
I don't know if I need to link the checkboxes to the dynamic text that is displaying the list of player names, then set the checkbox values, or if I need to drag the checkbox title/name from the Bindings panel to the actual checkbox on the dreamweaver page.
Does anyone have a bit more info pls?
Cheers
Andy
Date: Tue, 28 Jul 2009 04:47:52 -0600
From: forums@adobe.com
To: soldier_bez@hotmail.com
Subject: Checkbox Repeat Region/Bind ID question
Yes it has to do with the bindings window. You bind the info from your dynamic text to create a dynamiv value for the ckeckbox. So checkbox code will look like this:
<input type="checkbox" value="<php echo $recordset_name['value']; ?>">
>