Skip to main content
Known Participant
July 28, 2009
Answered

Checkbox Repeat Region/Bind ID question

  • July 28, 2009
  • 1 reply
  • 1279 views

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

This topic has been closed for replies.
Correct answer DwFAQ

Yes one line in repeat region will repeat the checkbox and add dynamic info for the value for each entry of the repeated region.

1 reply

DwFAQ
Participating Frequently
July 28, 2009

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.

info261Author
Known Participant
July 28, 2009

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

DwFAQ
DwFAQCorrect answer
Participating Frequently
July 28, 2009

Yes one line in repeat region will repeat the checkbox and add dynamic info for the value for each entry of the repeated region.