There should be a javascript out there somehwere that can search that form
field for double quotes
and throw an error if there are any telling the person to remove them before
hitting send. Or upon
inserting the quote Strip the double quotes or replace them w/ single quotes
using the REplace function.

Dear All,
I'm facing a problem and can't figure out the solution
and would love anyones help.
the situation is this:
i have a form for users to fill, i take their entry
and enter it in the database, then i take it and
display it in a form so they can edit it.
the problem is this:
if uses enter double quotes my html gets mixed up and
considers the users quote to be the end of the output
value for the input field. 
Example:

<form>
   <input type="text" value="myvalue">
</form>
myvalue is a variable which is read from the DB and
contains a double quote now if 
myvalue = this is a double quote " like this.

the output html will look like this:
<input type="text" value="this is a double quote "
like this.">

and the output like this:
this is a double quote

and that's it..cause it took the double quote as the
end of the value field.

now what do i do?  how can i prevent that from
happing?
Thanks,



=====
Heidi Belal
www.code-corner.

~~~~~~~~~~~~~~~~~~~~~~
Kelly Matthews
Senior Programmer
[EMAIL PROTECTED]
http://www.allsoldout.net
703.387.4000 x 35
~~~~~~~~~~~~~~~~~~~~~~


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to