PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Customize GF or UserReg to httpost to remote location

  1. ab
    Member

    Anyone know how to customize either GF or GFUserRegistration so that after the form is submitted, it gathers the fields and can instantly send a http post to a remote location in order to also send/store info outside wordpress itself.

    Just need to insert something that can efficiently send a post like normal, httppost.php?name=john&lastname=jennings&phone=5555551234 etc

    Im not sure whether this is the proper area to receive support or help with this task.

    Thanks for the help this will be helpful for others looking to post form data elsewhere.

    Posted 13 years ago on Friday April 22, 2011 | Permalink
  2. You would use the gform_post_submission hook which has access to the Entry object containing the form entry data. You would have to write custom PHP using this hook to interact with the remote database or api.

    Here is a forum post that discusses their usage:

    http://www.gravityhelp.com/forums/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-18087

    Here is documentation on the gform_post_submission hook:

    http://www.gravityhelp.com/documentation/page/Gform_post_submission

    Here is documentation on the Entry object:

    http://www.gravityhelp.com/documentation/page/Entry_Object

    You would write custom code using these and place them in your themes functions.php file to execute them.

    Posted 13 years ago on Friday April 22, 2011 | Permalink