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

To get value from get/post

New Here ,
Jul 20, 2010 Jul 20, 2010

Hi, i want to get values which are coming from form to action page as array. How can i get these values ?

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

correct answers 1 Correct answer

Participant , Jul 21, 2010 Jul 21, 2010

You can get them as collections (structure). In your action page, try to dump the form so that you can understand better: <cfdump var="#form#">

I am not sure why you want to get them as arrays. Can you elaborate on what you want to achieve?

Translate
Participant ,
Jul 21, 2010 Jul 21, 2010

You can get them as collections (structure). In your action page, try to dump the form so that you can understand better: <cfdump var="#form#">

I am not sure why you want to get them as arrays. Can you elaborate on what you want to achieve?

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
New Here ,
Jul 21, 2010 Jul 21, 2010

Thank you very much. I will replace html tags by using replace method.

Can you give me a example to do this  ? I dont know coldfusion language well.

Thanks again

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
Explorer ,
Jul 21, 2010 Jul 21, 2010

Please check

http://www.adobe.com/livedocs/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000613.htm

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
Participant ,
Jul 21, 2010 Jul 21, 2010

I still don't know what you want to achieve. But for a clearer understanding on how to get the form field names and its value, you can try this:

<cfoutput>
     <cfloop collection = "#form#" item="fieldName">
          #fieldName# = #form["#fieldName#"]# <br />
     </cfloop>
</cfoutput>

The code above might give you an idea on form collections and how to handle them.

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
New Here ,
Jul 21, 2010 Jul 21, 2010
LATEST

Thank you.

I dont want to allow html tags which is coming from form. I wanted to this

This code is enough for me.

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