title: PHP process multiple form fields to checkbox field
body: <p>I am trying to process data to a field with the API reference 'custom11746175'. However, this field has checkboxes and I want to process multiple values when necessary. Right now, I only have this, which will only process <strong>one</strong> of the values "Off-g", "On-g", "On-h" or "On-i" (the last defined one):</p>
  
  <pre><code>if (($_POST['custom13346240'] == 'Off-g')) {
  $contactData['custom11746175'] = "Off-g";
  }
  if (($_POST['custom13346240'] != 'Off-g')) {
  $contactData['custom11746175'] = "On-g";
  }
  if ($_POST['custom13500281']) {
  $contactData['custom11746175'] = "On-h";
  }           
  if ($_POST['custom11746175'] == 'Yes') {
  $contactData['custom11746175'] = "On-i";
  }
  </code></pre>
  
  <p>What do I need to change in case I want to process <strong>all</strong> of the defined values (the number can vary) and have them marked in the checkboxes? Should I construct an array, to obtain something like a multidimensional field?</p>