Copy link to clipboard
Copied
Hi, i want to get values which are coming from form to action page as array. How can i get these values ?
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?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Please check
http://www.adobe.com/livedocs/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000613.htm
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank you.
I dont want to allow html tags which is coming from form. I wanted to this
This code is enough for me.