I'm new here and tried to search through the existing posts before asking, but couldnt find one that worked for mine exactly that worked for fixing my form. I'm still learning this - so not sure what I've done wrong in my form.
With this form I'll attach below, I get this warning/errors' in the top of my browser:
Notice: Undefined index: checkbox_group_1 in /home/adk819/public_html/DummyWebs/DCC2/send_form_email.php on line 25
Warning: implode() [function.implode]: Invalid arguments passed in /home/adk819/public_html/DummyWebs/DCC2/send_form_email.php on line 25
Here is my html (where only the error is for - it's quite a large form :/) :
<form class="formTemplate" method="POST" action="send_form_email.php">
<div>
<fieldset><!-- Wrap checkbox/radio button groups in fieldsets -->
<legend id="casetype">Case Type</legend>
<div>
<input type="checkbox" id="casetype_1" name="checkbox_group_1[]" value="Rackmount" />
<label for="casetype_1">Unknown</label>
</div>
<div>
<input type="checkbox" id="casetype_2" name="checkbox_group_1[]" value="Injection" />
<label for="casetype_2">Injection Molded</label>
</div>
<div>
<input type="checkbox" id="casetype_3" name="checkbox_group_1[]" value="Rotationally" />
<label for="casetype_3">Rotationally Molded</label>
</div>
<div>
<input type="checkbox" id="casetype_4" name="checkbox_group_1[]" value="Rackmount" />
<label for="casetype_4">Rack Mount</label>
</div>
</fieldset>
</div>
</form>
Here is my php (for the above area):
$casetype = implode(' | ', $_POST['checkbox_group_1']);
// Construct email body
$email_message .= "Case Type: ". $casetype . "\r\n";
Here is where I found the info to make this part of the form: http://webdesy.com/how-to-create-html-php-contact-form-radio-buttons-checkboxes-dropdown-menu/ I've asked for their help - but no fix as of yet :(.
Thank you all for any help you can give me! Mary~