radio value empty in posted data
-
Hello,
I am facing an issue while I try to store in database the value selected in radio options.
I’ve implemented a hook in functions.php like this:
function save_form( $wpcf7 ) { global $wpdb; $submission = WPCF7_Submission::get_instance(); $submited['posted_data'] = $submission->get_posted_data();
I can see all the values in [text] , [textarea], [date] or [select]. However, the [radio] always returns empty:
Sex:[radio s_sex "Male" "Female"]
if ($submited['posted_data']['s_sex'] == 'Male') $v_sex = 'M'; else $v_sex = 'F';
do you know what i am doing wrong?
thx in advance
https://www.ads-software.com/plugins/contact-form-7-to-database-extension/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘radio value empty in posted data’ is closed to new replies.