• Resolved RSimpson

    (@rsimpson)


    Hi there,

    Is there a function available where I can pass $_POST data to cforms? I’d like to handle part of the data using my own function, then pass it all to cforms to handle as normal. Specifically, I’m asking those who’re submitting the form if they’d like to join my mailing list, and if yes, handle the mailing list subscription then submit the data via cforms.

    Cheers,
    Robert

    https://www.ads-software.com/plugins/cforms2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bgermann

    (@bgermann)

    You can send arbitrary POST data to the addresses that the forms post to. I do not think, it is a good idea, but you can try. I would recommend using the defined API to call your own function before procesing the form.

    Thread Starter RSimpson

    (@rsimpson)

    Do you have documentation for the API? Is there a hook I can use to process part of the data before cforms handles it?

    Plugin Author bgermann

    (@bgermann)

    See my-functions.php.txt and the plugin help pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘passing $_POST data to cforms’ is closed to new replies.