Hello all,
This is my first post so I apologize if etiquette is lacking. :)
I have a simple html contact form, a few text fields and an area with multiple checkboxes centering around a question: Where did you hear about us? The form is filled out and will submit -and be delivered to my email. It lists all the text entries but only displays 'Array' in the area which should list all selected checkboxes.
This is the markup:
<form action="contact.php" method="post">
<fieldset>
<div class="form_wrap">
<div><label for="name">Full Name</label><input type="text" name="name" value="" id="name" /></div>
<div><label for="email">Email Address</label><input type="text" name="email" value="" id="email" /></div>
<div><label for="phone">Phone Number</label><input type="text" name="phone" value="" id="phone" /></div>
<div><label for="date">Date of Event</label><input type="text" name="date" value="" id="date" /></div>
<label>How did you hear about us?</label>
<div class="checkbox_container">
<br>
<input type="checkbox" name="source[]" value="facebook" class="checkbox"/>Facebook
<br>
<input type="checkbox" name="source[]" value="family" class="checkbox"/>Family
<br>
<input type="checkbox" name="source[]" value="friend" class="checkbox"/>Friend
<br>
<input type="checkbox" name="source[]" value="premier bride magazine" class="checkbox"/>Premier Bride Magazine
<br>
<input type="checkbox" name="source[]" value="richmond bridal showcase" class="checkbox"/>Richmond Bridal Showcase
<br>
<input type="checkbox" name="source[]" value="richmond wedding expo" class="checkbox"/>Richmond Wedding Expo
<br>
<input type="checkbox" name="source[]" value="richmond weddings magazine" class="checkbox"/>Richmond Weddings Magazine
<br>
<input type="checkbox" name="source[]" value="twitter" class="checkbox"/>Twitter
<br>
<input type="checkbox" name="source[]" value="weddingwire.com" class="checkbox"/>WeddingWire.com
<br>
<input type="checkbox" name="source[]" value="other" class="checkbox"/>Other
<br>
</div>
<div><label for="message">Additional Info</label><textarea name="message" id="message" rows="8" cols="30"></textarea></div>
<div class="submit"><input type="image" src="images/btn_submit.png" alt="Submit" onClick="submit();" /></div>
</div>
</div>
</fieldset>
</form>
</div><!-- end #contact_form -->
And this is the php script as it currently stands:
<?php
header('Location: [
dsdesignerevents.com...] ;
?>
<?
$subject="from ".$_POST['name'];
$headers= "From: ".$_POST['email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail("joe@brainchildcollective.com", $subject, "
<html>
<head>
<title>Contact Form</title>
</head>
<body>
<br>
<br>".$_POST['name']." <br />
<br>".$_POST['email']." <br />
<br>".$_POST['phone']." <br />
<br>".$_POST['date']." <br />
<br>".$_POST['source']." <br />
<br>".$_POST['message']." <br />
</br>
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
What am I missing...I've tried several fixes and none work...I'm not a php expert by any means so any help is wonderful.
Thanks everyone!