logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-21-2011, 05:53 AM   #1
theman68
 
Join Date: Mar 2011
Posts: 34
Default multi checkboxes

hi guys just want to know how to deal with multi checkboxes and insrting into the database

i have got to the point of getting my multi checkboxes into arrays with the implode function but storing them im having quite a lot of troubble
how do i do it do you know?
thank you
theman68 is offline   Reply With Quote
Old 07-26-2011, 11:14 AM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

Your checkbox values will be stored in an array when you post the form

The array is called....

$_POST
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-26-2011, 12:05 PM   #3
theman68
 
Join Date: Mar 2011
Posts: 34
Default

yeah i go the arrays imploded but when i try to echo that value in a hidden field for instance and then input into the database it just doesnt insert a value.
and its a huge probs really lol.
pretty tough little thing to figure.
i surfed google for hours and only figured out the getting in into a function and the getting the values back out just cant store it mate thats it
theman68 is offline   Reply With Quote
Old 07-26-2011, 02:10 PM   #4
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

inspect your $_POST using...

echo "<pre>";
print_r($_POST);
echo "</pre>";

you will see the location of the checkboxes and values

You don't need to implode anything?
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com