Argelia Toadvine
New Member
Here is my php code:\[code\]$tasks = ' ';$help = $_POST['help'];if(empty($help)){ $tasks = "None selected.";}else{ $N = count($help); $tasks = $N;}\[/code\]And the HTML is:\[code\]<input type="checkbox" name="help" value="http://stackoverflow.com/questions/12771732/sign"> //with several inputs with different values\[/code\]On the form submit, it emails and outputs everything appropriately except the count of the array. It outputs the $tasks variable at the end of the email always as 1, except when no check boxes are selected. Any combination of selecting checkboxes (1-6) ends up with an array of 1 length. Anyone know why? Thanks!