New to the cross site scripting arena - trying to prevent users from
entering javascript into form fields and the javascript from executing.

Pretty much anything goes in the form fields - so  I am trying to add
htmleditformat to my code - but the javascript is still executing when I

click submit.  What am I doing wrong??

No matter what, anytime I put in some script code into the ID input box -

the JS gets executed.

code:

<form action=3D"index.cfm" method=3D"POST" name=3D"myForm">
<cfoutput>
    <tr><td align=3D"right" class=3D"text9">
       Enter ID:</td><td><input type=3D"text" name=3D"logName"
value=3D"#HtmlEditFormat(VARIABLES.logName)#" size=3D"12"></td></tr>

</cfoutput>
 <tr><td align=3D"center" colspan=3D"2" >
    <input type=3D"submit" name=3D"submit" id=3D"subbtn" title=3D"Submit"

value=3D"Submit" />
 </td></tr>

 </FORM>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336624
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to