help meeeeeeeee
when i paste text from note pad into my text area on my form
and submit it to be writen into a file.
the text is appended twice with a commer between does any body
know why ???????????
text area :
<TEXTAREA cols="40" rows="6" onfocus="this.form.file.select()" wrap="hard" name="file">#stgcontent#</TEXTAREA>
(on one line)
write to file :
write a header
<CFFILE action="WRITE" file="#Application.siteRoot#\#attributes.stgwhere#\#urlencodedformat(attributes.stgheading)#.htm" output="#variables.stgmetaheader#" addnewline="yes">
write content from text area on line after header.
<CFFILE action="APPEND" file="#Application.siteRoot#\#attributes.stgwhere#\#urlencodedformat(attributes.stgheading)#.htm" output="#attributes.stgcontent#" addnewline="no">
when i paste text from note pad into my text area on my form
and submit it to be writen into a file.
the text is appended twice with a commer between does any body
know why ???????????
text area :
<TEXTAREA cols="40" rows="6" onfocus="this.form.file.select()" wrap="hard" name="file">#stgcontent#</TEXTAREA>
(on one line)
write to file :
write a header
<CFFILE action="WRITE" file="#Application.siteRoot#\#attributes.stgwhere#\#urlencodedformat(attributes.stgheading)#.htm" output="#variables.stgmetaheader#" addnewline="yes">
write content from text area on line after header.
<CFFILE action="APPEND" file="#Application.siteRoot#\#attributes.stgwhere#\#urlencodedformat(attributes.stgheading)#.htm" output="#attributes.stgcontent#" addnewline="no">