-
TextArea html formated var to coldfusion
Hi All
I have a TextArea with html enabled. When I try to pass that data to coldfusion it breaks my cf script that receives it. The script works fine if I send the data from an html form. When it comes from an html form it converts special charecters such as # to the html equivalent. However from flash it comes as # which then breaks the cf code. Any help to get my html code into cf so it can be sent in an html formated email would be great.
thanx
-
You could loop through every character of the string in AS to check for those kinds of characters, but that would be a pain. I don't know my CF, but I bet there's a function that strips # and similar characters, like stripslashes() in PHP.
Edit: from LiveDocs...
Code:
REReplace(string, reg_expression, substring [, scope ])
In your case, the reg_expression would be the #.
Last edited by BobJohnson; 11-07-2006 at 12:18 AM.
-
I not sure but most strange charecters were breaking it. I found this great how to for sending data from flash to coldfusion.
http://www.adobe.com/support/flash/...ng_forms10.html
solved the broblem and sends data back so thats a plus.
thanx dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|