Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Escaping "DoubleQuotes" 3

Status
Not open for further replies.

powahusr

Technical User
Jan 22, 2001
240
US
I'm trying to insert the value of a Form.Variable into a Memo Field, the variable contains the info from a <Textarea> Field.

There is about a paragraphs worth of data and in this data, a Double quoted word exists. All the data up to that Quoted word gets inserted into the database, however the rest is cut off after the Quoted word.

I know there is a PreserveSingleQuotes function that will protect a quoated word, but is there a comparable function to escape Double Quotes (&quot;)?

Thanks in Advance!
 
Ok, I reduced the problem down to an issue with the <input> Tag.

I'm using the the Input tag to store the information in a confirmation tag.

This is what happens:

1) User fills out a form, in the form is a Textarea control.

2) User clicks submit.

3) The information that the user entered in the form is displayed on a Confirmation page. All fields are stored in Hidden variables inside a Input tag.

4) User clicks submit again and the information that was stored in the hidden variables located in the confirmation page are now sent to an Action page for processing.

Ok, this is where the problem is, if the information is sent strait from the value of the Textarea control, the information is properly stored in the database. However, if the information is sent from the <input> tag value, the info is cutoff when a double quote is present.

Example of the problem input tag:
<input type=&quot;hidden&quot; name=&quot;Message&quot; value=&quot;#form.Message#&quot;>


Any suggestions, I would really like to use confirmation pages, but can't due to the fact that there is some sensitivity when using certain chatacters in Input tag values.
 
Also..
Code:
#Replace(MyValue,'&quot;','&quot;','ALL')#
should work..
 
You're welcome pow,

Er, Teknology, that's what it appears but it actually replaces &quot; with &-quot; (without the hyphen)... except that the board &quot;fixed&quot; that for me...

Erk... frustrating...

Tony Did I help?
Vote!
 
HtmlEditFormat(), method worked just fine. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top