Checkmark Array Fields in MySQL in DB

  • Profile Image
    Asked on August 03, 2014 at 12:05 PM

    I have several Checkbox fields on my form in my database this just shows as "Array". What do I need to do on my Custom PHP page in order for this to show properly in my db?

    I tried this...

    $check=$_POST['check']['0'] .":". $_POST['check']['1'] ." ". $_POST['check']['2'];

    But I copied this from a time field, so I know my format is screwed up.

    Can you help me by showing me how I would format it for a question that has 3 options: YES, NO and OTHER?

    (My field name is: "check")

    Thank you,


  • Profile Image
    Answered on August 03, 2014 at 05:04 PM

    I think using  as a Custom URL Thank you page to show your post data will easily help you to find out the correct keys for your form

    For example, I made this form and the script helps me find out the correct keys for the checkboxes I selected (in green)

    Data Submitted:
    Array ( [submission_id] => 282908641737556490 [formID] => 30155250445950 [ip] => [fullname3] => Array ( [0] => Jeanette [1] => Bmz ) [email4] => [checkfor] => Array ( [0] => January [1] => March [2] => June ) )

    PHP Code:


    Please follow this complete guide for further details