• SK

    (@sooskriszta)


    I am using the following to grab form submit values after submission via

    $submission = WPCF7_Submission::get_instance();
    $posted_data = $submission->get_posted_data();

    However, the following is not working for me:

    $ArrP = array();
    $ArrP = $posted_data['checkbox-564'];
    if($ArrP[0] == 1){
    		    $programme['Option 1'] == "on";
    		}
    
    if($ArrP[1] == 1){
    		    $programme['Option 2'] == "on";
    		}

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Did you find a solution I stumble upon the same issue Checkboxes don’t work as expected

Viewing 1 replies (of 1 total)

The topic ‘How to get checkbox array values’ is closed to new replies.