I am trying to pass an email address as a URL variable

  • ciscoadler
    Asked on October 25, 2015 at 1:48 PM

    When I try to pass an email address as a variable to another form on my Wordpress site the data passes but strips out the @ symbol. I think this is a URL encode related issue but I'm not certain and not sure how to create the correct format.

    The first form is at the bottom of this page: http://ppcstud.com

    The second form is here: ppcstud.com/thank-you/

    In the second form, I am not showing the email field because it is not necessary for the user to see it again.

     

    Thanks for the help!

     

  • Kevin Support Team Lead
    Replied on October 25, 2015 at 6:47 PM

    Hello ciscoadler,

    You can take a look to this guide :

    http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

    I've cloned your form and made some changes,here is my example : 

    https://form.jotform.com/52977277300965

    This is that I've made,you can  follow these steps :

    1.Go to the top tool bar and click on Preferences:

    I am trying to pass an email address as a URL variable Image 1 Screenshot 30

    2.In Advanced Settings, change  the Send Post Data field  from No to Yes:

    I am trying to pass an email address as a URL variable Image 2 Screenshot 41

    Now, you will be able to get the data in your Custom Tank You Page,you should write just the link without any variable, and in the page you are redirecting can use this PHP code to display the email, and you will be able to use it as you need:

    <?php echo $_POST['clickto'] ?> 

    I hope this helps.

    If you need more help related to this topic, please let us know and we will be glad to help you.

    Regards.