Hi Skrol29, I got a problem about checkbox selection.
Here is my HTML :
<form method="post" action="">
<ul>
<li><input type="checkbox" name="abc[]" value="a"/>a</li>
<li><input type="checkbox" name="abc[]" value="b"/>b</li>
<li><input type="checkbox" name="abc[]" value="c"/>c</li>
<li><input type="checkbox" name="abc[d]" value="d"/>d</li>
[abc;ope=html;select='abc[]';]
</ul>
</form>
|
And my PHP :
$data_ = array('a', 'b', 'd');
$tbs_ = new clsTinyButStrong();
$tbs_->LoadTemplate('abc.html');
$tbs_->MergeField('abc', $data_);
$tbs_->Show();
|
Item a and b were selected, but not d.
I know TBS cannot locate abc[d], because I set the select='abc[]'.
However, my HTML is dynamic page. I have no idea how many abc[xxx] inputs will be generate with index key. So, in my case, is there any good solution to do such checkbox selection?