How can I include ? and & within a parameter being passed in a URL

  • Profile Image
    Asked on February 28, 2014 at 04:18 PM

    I am sending parameters to my thankyou page through the url, so I have something like [page address]?param1=string1&param2=string2&param3=string3

    But one of the strings is actually a similar url string that I want to pass on, so it will contain a question mark and some ampersands. Is there any way in which I can put this inner string into a form where the ? and & will not be treated as seperators by the receiver of the original parameters?

  • Profile Image
    Answered on February 28, 2014 at 05:24 PM


    Your solution is quite structured - and yes - the apersand in the string might break the rest of the parameters that come after it...

    I would suggest the following:

    A.  Place the parameter with the URL with the ampersand at the very end of the thank you URL - its a simplistic approach - but it just might work

    B. Encode the URL as a variable:

    1. Create a field in the form,

    2. hide it

    3. Then place the URL with the ampersand as the default value

    4. Then use the field variable to pass it to the thank you URL:

    So your Thank You URL would looks something like this:¶m2=string2¶m3=string3&URLparam={myUrl}

    I hope this helps.

  • Profile Image
    Answered on March 04, 2014 at 09:14 AM


    I'm just looking into this again, but I was wondering, in your example above, what are the two paragraph placed one either side of "m2=string2"? Are they perhaps actually ampersands?

  • Profile Image
    Answered on March 04, 2014 at 10:19 AM

    Nothing to worry about - the text-editing canvas changed my ampersand. Tried to edit the little rascals - no Joy...your example syntax is correct - let us know if you hit any bumps