I have a simple form, show below, which is causing me problems.  The
users Copy & Paste text from Word into the text area.  Sometimes, the
err.. "extended characters" for want of a better word, cause problems.

For example, typing "hello world" into Word changes the double quotes
into nice looking curly one, which look like 66 99.  The same for
three periods '...' turn into some funky 3dot character.

When these submit to the next page, they double up...

Here's the form I'm using...

<form action="add_update_news.cfm" method="post"  name="newsForm"
enctype="multipart/form-data">
  <input type="text" name="headline" value="" size="50" style="width:
393;">
  <textarea cols=46 rows=20 name="article" style="width:
393;"></textarea>
  <input type="file" name="image1" value="" size="50" style="width:
393;">
  <input type="Submit" value="Submit">&nbsp;&nbsp;<input type="Reset"
value="Reset">&nbsp;&nbsp;
</form>

I enter 'title' into the text box called headline and '"hello world"'
(copy and pasted from Word) into the textarea.  On the next page, if I
output the form fields passed to me I get...
#headline# = title,title
#article# = "hello world","hello world"

This is even before I do anything else on the page.  Now the weird
part, if I remove the file upload part of the form, everything works
fine.

Anyone come across this problem of copying and pasting from Word, and
what do I do about the funky characters.

Cheers

Dan.



This message is intended only for the use of the person(s) ("the intended 
recipient(s)") to whom it is addressed.

It may contain information which is privileged and confidential within the meaning of 
the applicable law. If you are not the intended recipient, please contact the sender 
as soon as possible.The views expressed in this communication may not necessarily be 
the views held by Live Information Systems Limited.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to