[Plugin: Contact Form 7] Passing validation with default values
-
Hello.
I have the same problem.
Form sends default values.
This code from previous topic is not working :
$values = (array) $tag['values']; // Value if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) && $wpcf7_contact_form->is_posted() ) { if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['ok'] ) $value = ''; else $value = stripslashes_deep( $_POST[$name] ); } else { $value = isset( $values[0] ) ? $values[0] : ''; } if($_POST[$name] == $values[0]) $_POST[$name]= '';Help me pls!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘[Plugin: Contact Form 7] Passing validation with default values’ is closed to new replies.