egold Posted March 15, 2009 Share Posted March 15, 2009 Hello Everyone, I developed a contact form in dreamweaver using a few checkoff boxes. My return script works except only 1 answer comes back. Could someone help me out with how to set up this php so multiple checkoff's will work? Here is part of my script from one of many questions. <p align="left">Check Off The Items That Describe Yourself<br /> <label> <input type="checkbox" name="selfdescription" value="driven" id="selfdescription_0" tabindex="170" /> Highly Driven</label> <br /> <label> <input type="checkbox" name="selfdescription" value="content" id="selfdescription_1" tabindex="175" /> Content</label> <br /> <label> <input type="checkbox" name="selfdescription" value="outgoing" id="selfdescription_2" tabindex="180" /> Outgoing</label> <br /> <label> <input type="checkbox" name="selfdescription" value="shy" id="selfdescription_3" tabindex="185" /> On The Shy Side</label> <br /> <label> <input type="checkbox" name="selfdescription" value="takecharge" id="selfdescription_4" tabindex="190" /> Take Charge</label> <br /> <label> <input type="checkbox" name="selfdescription" value="teamplayer" id="selfdescription_5" tabindex="195" /> Team Player</label> I searched and read and viewed some tutorials after a many days of trying I got the script to work just fine except I can get more than 1 checkoff answer $selfdescriptionField = $_POST['selfdescription_1']; here is the response part self description: $selfdescription <br> What do I need to do to get multiple answers sent back to me Thanks in advance Evan Quote Link to comment Share on other sites More sharing options...
revraz Posted March 16, 2009 Share Posted March 16, 2009 Your name field in your form for your checkbox should be an array if you want it to store multiple selections. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.