-2

I am getting array input from multiple checkboxes, but I want two different types of value set (emails combined and name combined)

echo '<br/>
<input type="checkbox" name="select_dept[]" value="'.$email.'" id=id1['.$i.'] onclick="if(document.getElementById(id1['.$i.']).checked){ document.getElementById(id2['.$i.']).checked=true"} >
<input type="checkbox" name="select_dept_name[]" value="'.$name.'" id=id2['.$i.']>'
.$id.' &nbsp '.$name.' &nbsp '.$mobno;
Palle Due
  • 5,929
  • 4
  • 17
  • 32

1 Answers1

0

Binding two checkboxes together

THIS thing solves the problem echo '
';