Ahoy there everybody! I am new to forms, have made some simple email forms before, but man, this one is killing me.
Alright, before we go on: [url]www.airecastle.com/customized-package.html
As you can see, the user checks the boxes they are intersted in. Now, I want the options they select to be sent to them via the email form at the bottom of the page. I ONLY want the options they checked to be sent, and of course, organized nicely.
I know I should do a for loop for all the elements in there, but the problem I was running into was unique names of the checkboxes. “Options” in my following example was taken from a list box with ONE name, ya know?
[CODE]$options=$_POST[‘options’];
$msg.=”nOptions:”;
if ($options) for ($i=0;$i<count($options);$i++) $msg.= “n- $options[$i]”;
else $msg.=”n- None”;
For my for loop, I need a way to count the number of checkboxes there are so the loop can end. Then, of course, an if statement filtering out the checked from unchecked.