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.

redirecting with POST data

  1. clairee
    Member

    I need to create a form with an action that redirects the user to a 3rd party site with the POST method.

    Gravity looks like it'll do pretty much anything. But I'm querying this because in the support documentation it describes the confirmation redirect setting as sending a querystring:

    'The redirect is an advanced form confirmation that allows you to redirect the user to any URL after the form has been submitted. This option also gives you the ability to pass form field data to the redirect page via query string parameters. Using the built in query string builder you can pass form field data to the page you are redirecting to.'
    from the bottom of this page: http://www.gravityhelp.com/documentation/page/Form_Settings

    Can it use POST instead?

    Posted 12 years ago on Friday August 3, 2012 | Permalink
  2. David Peralty

    The redirect can't use POST. The post variables are sent to itself so Gravity Forms can record the data. You can use http://www.gravityhelp.com/documentation/page/Gform_after_submission to submit details to a separate script through post.

    Posted 12 years ago on Friday August 3, 2012 | Permalink
  3. Hi David,
    I have the same need as clairee.
    I want to use data entered into a gravity form to send parameters to a payment gateway.
    Does it mean that if I want to redirect to a specific page, with POST parameters, I have to do it programaticaly and not configure any Gravity redirection?

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink
  4. David Peralty

    The solution I gave above is still correct. You can redirect using query strings/get but not post. You would have to push the data using the gform_after_submission hook. All my best!

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink

This topic has been resolved and has been closed to new replies.