Support » Plugin: Contact Form 7 - Repeatable Fields » using $output and $_POST

  • Hi,

    thanks for your plugin it was really what I was looking for. By the way I’m creating a form which saves an xml files while pressing submit button.
    I’m printing all the shortcodes of cf7 with $output .= $_POST[‘shortcode’]; but I’m not able to print any field of yours plugin. Any suggestions?
    That’s a part of my code:

    add_action( 'wpcf7_before_send_mail', 'CF7_pre_send' );
    function CF7_pre_send($cf7) {
        $output = "";
        $output .= "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><curriculum><cf>" . $_POST['codicefiscale'] . "</cf>";
        $output .= "<cognome>" . $_POST['cognome'] . "</cognome>";
     file_put_contents("wp-content/uploads/cf7outputtest.xml", $output);

    Thanks a lot,


Viewing 1 replies (of 1 total)
  • irekunenko


    I have a similar problem – I can not fetch field values ​​for integration with another system.
    Everything comes to the mail correctly, but through $post requests I don’t get the value of the fields.

Viewing 1 replies (of 1 total)
  • The topic ‘using $output and $_POST’ is closed to new replies.