Title: Custom Function -&gt; Page/Post functionality
Last modified: August 21, 2016

---

# Custom Function -> Page/Post functionality

 *  [tgfrules](https://wordpress.org/support/users/tgfrules/)
 * (@tgfrules)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-function-pagepost-functionality/)
 * I have been playing around with the Contact Form 7 for a few days.
    What I am
   trying accomplish is the following
 * 1) Setup up a form
    2) When clicking submit I “enter” my custom php function 
   where I have hooked one of these events * add_action( ‘wpcf7_before_send_mail’,…*
   add_action(‘wpcf7_mail_sent’, … * add_action(‘wpcf7_mail_failed’, … 3) In this
   custom php function I want to do some handling of the data filled in by the user.
   Like calculations and such. 4) The result needs to go back to the user. I was
   thinking through a simple GET like [http://www.mydomain.com/ResultPage/?result=FooBar](http://www.mydomain.com/ResultPage/?result=FooBar)
   This way I can present it nicely. (the present page is working)
 * What I have succeeded with so far is the first 3 steps, but the fourth one I 
   can’t figure out.
 * I have tried all kinds of ways, like these two
    * Changing the posted data (which
   did not have any effect) * Doing a wp_redirect (which broke the form, it wouldn’t“
   complete”)
 * Any help will be much appreciated 🙂
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [tgfrules](https://wordpress.org/support/users/tgfrules/)
 * (@tgfrules)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-function-pagepost-functionality/#post-5112824)
 * *bump*
 *  [Neil Murray](https://wordpress.org/support/users/buzztone/)
 * (@buzztone)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/custom-function-pagepost-functionality/#post-5112852)
 * [http://codex.wordpress.org/Forum_Welcome#No_Bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Function -> Page/Post functionality’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Neil Murray](https://wordpress.org/support/users/buzztone/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/custom-function-pagepost-functionality/#post-5112852)
 * Status: not resolved