• Hi.

    First of all, sorry my pure English. I have a code which must be perfomed after submitting the form (or after succesed mail sent)

    <br />
    $email = $_POST['your-email-phone'];<br />
    $name = $_POST['your-name'];<br />
    $budget = $_POST['number-45'];<br />
    $comm = $_POST['textarea-168'];</p>
    <p>    	$arFields = array(<br />
    		'TITLE' => $name,<br />
    		'NAME' => $name,<br />
    		'COMMENTS' => $comm,<br />
    		'PHONE_MOBILE' => $email,<br />
    		'EMAIL_HOME' => "gererro@mail.ru",<br />
    		'OPPORTUNITY' => $budget,<br />
    		'CURRENCY_ID' => 'UAH',<br />
    	);<br />
    print_r ($arFields);

    (its example). But no matter how I tried to get it to work, it isn’t. I’am trying do it with hooks (wpcf7_mail_sent or wpcf7_before_send_mail), trying like this:if ( $_POST['_wpcf7_mail_sent']['ok'] ) { condition }
    but it still not working.

    Please help me solve it issue. Thank you

    https://wordpress.org/plugins/contact-form-7/

The topic ‘Can't performe the code after submitting’ is closed to new replies.