You need to change the name attribute for those checkbox inputs:

<input type="checkbox" name="blah[]" value="1">
<input type="checkbox" name="blah[]" value="43">

The square brackets are needed for PHP to handle the data as an array.

Mike



On 7/25/07, amircx <[EMAIL PROTECTED]> wrote:


hey. i got this :
<code> <form id="SenddataForm" name="SenddataForm" method="POST"><input
type="checkbox" name="blah" value="1"><input type="checkbox" name="blah"
value="43">

 </code>

the problem is that once i serialize that form i get blah=1&blah=43 ... i
want to get it as array and able to pass it to php in that way?:
blah[0]=1&blah[1]=43

(so ill be able to be do foreach ($_POST[blah] as...)


anyone can help?

--
View this message in context: 
http://www.nabble.com/PHP-Serialize-for--Checkbox-tf4142575s15494.html#a11783903
Sent from the JQuery mailing list archive at Nabble.com.


Reply via email to