So...if I have a form with a section that says, 'Check all that apply' how do I configure my sendmail (I'm using php) to list those that are checked? Do I have to do a seperate one for each variable?For instance...'hobbies: '.$hob."\n"is how I currently have it, but I'm only getting one of the variables even if multiple are checked?
1/18/2006 1:39:20 PM
i have something like this on one of the pages i've been working oni'd have the checkboxes be like
'<input type=checkbox name=hob['.$counter.']>'
if($hob[$count]) {}
1/18/2006 4:49:02 PM
form.php<form action="handler.php" method="POST"><input type="checkbox" name="Hobbies[]" value="Hobby 1" /> Hobby 1<input type="checkbox" name="Hobbies[]" value="Hobby 2" /> Hobby 2<input type="checkbox" name="Hobbies[]" value="Hobby 3" /> Hobby 3</form>handler.phpforeach ($_POST['Hobbies'] as $val){ echo $val; // $val is the Hobbies that people selected}
1/18/2006 5:28:21 PM