Please Note: We are no longer using forums to facilitate standard support. 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.

Encode parameters passed to redirected page

  1. jameztcc
    Member

    Hi,

    supposed I create a form that upon submit will redirect to another page e.g. http://anotherpage/?code1=abcde&product1=12345 ...

    How do I add codes e.g. base64_encode() to 'encode' the code1 value ie abcde to eNortjK1UkpMSk5JVbIGXDAXOgOL so that the redirected to URL is http://anotherpage/?code1=eNortjK1UkpMSk5JVbIGXDAXOgOL&product1=12345
    thanks,
    James Tan

    Posted 3 years ago on Tuesday September 13, 2011 | Permalink
  2. You can use the gform_confirmation filter to change the redirect URL, including base64_encode(ing) the code1.

    The $form and $lead objects are available to this filter, so you can craft a URL by base64_encode(ing) the entry field which contains the code1 value and then using that in your url. Then return that URL as your redirect URL.

    Do you need more assistance implementing that?

    Posted 3 years ago on Wednesday September 14, 2011 | Permalink
  3. jameztcc
    Member

    If you don't mind, could you show me an example, a simple one will do.

    thanks,
    James Tan

    Posted 3 years ago on Tuesday February 21, 2012 | Permalink
  4. jameztcc
    Member

    Hi,
    possible to share with me the howto?

    thanks,
    James Tan

    Posted 3 years ago on Wednesday March 21, 2012 | Permalink

 

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only