Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

passing url variables, url stops at first &

Guest
Aug 30, 2011 Aug 30, 2011

We are making a url in a string and putting it in a form tag a lot like this

<cfset a='http://a/b/c?x=3&y=02'>

<cfoutput>

   <form action="#a#"method="get">

       etc

   </form>

</cfoutput>

the url in the browser address box stops at the 1st ampersand in the url string

***how can we fix this?

it is an emergency

675
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 30, 2011 Aug 30, 2011

I don't typically do this, but I think that using form GET instead of post

is going to overwrite the URL vars in the action with the new variables of

your form fields.

Put the URL variables in the form or use post.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 30, 2011 Aug 30, 2011
LATEST

Me too, pass form elems and method is post. This situation I have to use method of get though, no control over situation. It's not an emergency anymore since the urls passed ok as links instead of buttons. Hope to have as buttons later. Thank you for answering and for advice.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources