I'm trying to name a input of type checkbox like this: <input type="checkbox" name="#tagname#" value="#tagid#" /> And, I'm running into problems when the name has a quote in it. For example, if #tagname# is 24" X 24" it turns into just 24 as the url variable after the form is submitted Is there someway to stop this from happening or should I just not be naming the input with the tagname? How else can I send both the name and the id as urls variables?
Is this even possible to have field names with spaces and quotes in HTML - I don't know. This is not a ColdFusion question. However, what coldFusion can do is strip all the spaces and quotes off of the URL variable, consider: ReplaceNoCase HTH
I've discovered that HTMLEditFormat is a built-in Coldfusion function that I can use for this. However, I'm not sure of an easy way to reverse the changes that this function makes to the form variable. Anyone have an answer for that?
Why would you want to reverse it? You use HTMLEditFormat whenever you want to display data. Meaning, if you are going to save it in the database save it in the database as 24" X 24", though when you go to display it again use HTMLEditFormat