title: How to pass two variable via checkbox value in PHP?
body: <p>I want to store 2 variables in a value, but I not sure with the syntax.
  The scenario: I want to store $boothAlias and $day2 into checkbox value to be pass to other page. </p>
  
  <pre><code>&lt;input name='totalDay[]' type='checkbox' value='$boothAlias.$day2'/&gt;
  </code></pre>
  
  <p>My code segment</p>
  
  <pre><code>while($rows = mysql_fetch_array($result2)){
    $boothAlias=$rows['boothAlias'];
    $totalDay=$rows['totalDay'];
    echo "&lt;tr&gt;&lt;td&gt;$boothAlias&lt;/td&gt;";
    for ($day2 = 1; $day2 &lt;= $totalDay; ++$day2) {
      echo "&lt;td&gt;&lt;input name='totalDay[]' type='checkbox' value='$boothAlias.$day2'/&gt;&lt;/td&gt;";
    }
    echo "&lt;/tr&gt;";
  }
  </code></pre>