webgyrl Posted May 26, 2007 Posted May 26, 2007 (edited) Hi gang! I'm designing a form and I need some help with it. I basically want a person to be able to tick off multiple boxes to describe the kind of logo they want to get. I've put in all the checkboxes with the styles and asked the people to check multiple as they apply to their design needs. For some strange reason, when the form is sent I am only getting ONE of the check boxes values sent to me. The form isn't sending the multiple values represented by the checkboxes that they chose (make sense???). I'm sure I've done something wrong... can someone help? Here is the code for that part of the form: ><td width="7%" ><input name="chk" type="checkbox" class="txtbox" id="chk" value="Fancy" ></td> <td width="25%" >Fancy</td> <td width="7%" > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Cutting-Edge" > </td> <td width="24%" >Cutting-Edge</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Unique/Creative" > </td> <td >Unique / Creative</td> </tr> <tr> <td ><input name="chk" type="checkbox" class="txtbox" id="chk" value="Clean/Simple" ></td> <td >Clean/Simple</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Classy" > </td> <td >Classy</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Professional" > </td> <td >Professional</td> </tr> <tr> <td ><input name="chk" type="checkbox" class="txtbox" id="chk" value="Corporate" ></td> <td >Corporate</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Modern" > </td> <td >Modern</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Industry Oriented" > </td> <td >Industry Oriented</td> </tr> <tr> <td ><input name="chk" type="checkbox" class="txtbox" id="chk" value="Outdoors/Natural" ></td> <td >Outdoors/Natural</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Traditional" > </td> <td >Traditional</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Local/Neighborhood" > </td> <td >Local / Neighborhood</td> </tr> <tr> <td ><input name="chk" type="checkbox" class="txtbox" id="chk" value="High Tech" ></td> <td >High Tech</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Retro" > </td> <td >Retro</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Fun" > </td> <td >Fun</td> </tr> <tr> <td ><input name="chk" type="checkbox" class="txtbox" id="chk" value="Serious" ></td> <td >Serious</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Illustrative" > </td> <td >Illustrative</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Silly/Cartoon" > </td> <td >Silly/Cartoon</td> </tr> <tr> <td ><input name="chk" type="checkbox" class="txtbox" id="chk" value="Masculine" > </td> <td >Masculine</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Feminine" > </td> <td >Feminine</td> <td > <input name="chk" type="checkbox" class="txtbox" id="chk" value="Childlike" > </td> <td valign="top" >Childlike</td> The same thing is happening below that part where I have the categories. Basically anything where I have a checkbox is only returning one of the items checked and not multiple items when the data is sent via email. The actual form is here (replace pound signs) >h##p://www.mbstia.com/logo-design/ld-questions2.php Thanks for the help! OH PS: I can't seem to upload any files. I get this message when I try to upload Error Upload failed. Please ask the administrator to ensure the uploads directory is writeable Edited May 26, 2007 by webgyrl Quote
TCH-Bruce Posted May 26, 2007 Posted May 26, 2007 Uploads are turned off on the forum, sorry To accept multiple check boxes require they each have a unique ID. All of yours are "chk". You would need "chk1", "chk2", "chk3", etc... Quote
carbonize Posted May 26, 2007 Posted May 26, 2007 Or if you need to get multiple answers you could use an array such as chk[fancy] chk[cuttingedge] chk[creative] then you should get the results as an array. Quote
webgyrl Posted May 27, 2007 Author Posted May 27, 2007 Uploads are turned off on the forum, sorry To accept multiple check boxes require they each have a unique ID. All of yours are "chk". You would need "chk1", "chk2", "chk3", etc... Ah- Ok. I just saw the upload button and assumed. Thanks for letting me know Bruce! Quote
webgyrl Posted May 27, 2007 Author Posted May 27, 2007 (edited) Or if you need to get multiple answers you could use an array such as chk[fancy] chk[cuttingedge] chk[creative] then you should get the results as an array. Carbonize: I am not sure what you mean here. I have no idea how to use an array. I am using a PHP Form mail type script and I'm not very good with programming this sort of thing. Is there another way you can explain this to me? I've zipped up the form files in a zip and put them on the site in case you or someone else might be able to look at them and lend a hand. The link is: >h##p:/www.mbstia.com/logo-design.zip (Replace Pound signs with T's) I thought all I had to do was put the checkboxes in the form, but this seems to be wrong! I'm confuzzled! LOL Thanks so much! Edited May 27, 2007 by webgyrl Quote
webgyrl Posted May 27, 2007 Author Posted May 27, 2007 Or if you need to get multiple answers you could use an array such as chk[fancy] chk[cuttingedge] chk[creative] then you should get the results as an array. Carbonize: I found this in the net: http://www.evolt.org/article/Storing_form_...0222/index.html From reading this it would seem I need to make some kind of special PHP code in my mailit.php form? But I've no clue where to start. Any ideas. Any PHP gurus around at this hour to help? Thanks! Quote
webgyrl Posted May 27, 2007 Author Posted May 27, 2007 Hi All, I thought this would be a simple issue of adding in some HTML check boxes, but now that I poke deeper, my issue might be related to having to code something into a PHP mailit.php form. Here was my original post in the HTML section: http://www.totalchoicehosting.com/forums/i...showtopic=32281 Basically I am designing a form with multiple check boxes adn I wand the user to be able to tick off as many boxes as they like and have those results returned to me. But it's not working the way I have it. Is there anyone around right now that might be able to help me over IM or email? Thanks! Quote
webgyrl Posted May 27, 2007 Author Posted May 27, 2007 (edited) To accept multiple check boxes require they each have a unique ID. All of yours are "chk". You would need "chk1", "chk2", "chk3", etc... Bang on Bruce. Fixed it! I don't know why but I totally did not see your second sentence after you mentioned the uploads being off... just took me till now to re-read your post. Yah, scatterbrain that I am! Thanks also to Andy for stepping in and helping out! Edited May 27, 2007 by webgyrl Quote
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.