diff --git a/includes/custom-field-ajuts-filter-function-frontend.php b/includes/custom-field-ajuts-filter-function-frontend.php index d6d170d..066111d 100644 --- a/includes/custom-field-ajuts-filter-function-frontend.php +++ b/includes/custom-field-ajuts-filter-function-frontend.php @@ -6,6 +6,9 @@ * basic start * https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/ * + * wordpress full form example + * https://wordpress.stackexchange.com/questions/383599/form-checkbox-value-going-to-dynamic-url + * * checkbox adaptation query * https://wordpress.stackexchange.com/a/102915 * @@ -14,140 +17,141 @@ * * @package Oficina_de_Suport_theme */ +?> -//function POST_look_values_to_submit() { -// // look checked values to send -// // https://stackoverflow.com/a/10808238 -// if( isset($_POST['submit-ajut']) ){ -// echo '
$_POST[submit-ajut] set
'; -// if( !empty($_POST[ $fields['name'] ]) ){ -// echo '$_POST[$fields[name]] not empty
'; -// foreach( $_POST[ $fields['name'] ] as $post_fields_name ) { -// $post_fields_name_value_checked[] = $post_fields_name; -// }; -// $all_post_fields_name_values_selection[] = $fields['name'] . '=' . implode(',',$post_fields_name_value_checked); -// unset($post_fields_name_values_checked); -// } else { -// echo '$_POST[$fields[name]] empty
'; -// }; -// //end look for checked values to send -// echo 'after $_POST:' . $url . '
'; -// }; -// // end look checked values to send -//} - +'; +?> +Results:
+ + + + + + + + + + +