Forums

This topic is locked

HTML Editor field contents wrecking form?

Posted 17 Mar 2007 17:38:56
1
has voted
17 Mar 2007 17:38:56 Nathon Jones posted:
Hi,

I am using Advanced HTML Editor with ASP/VBScript.

I have a form on a page which asks for some details, and also has a Text Area field to allow people to enter a message. This message can contain HTML, using the HTML editor to make text bold, different colours etc - nothing too fancy.

I am initially submitting this to a confirmation page which displays the form field contents to allow a user to preview what they've entered before saving to database.

I have created hidden form fields on the confirmation page containing the form field data submitted from the previous page to use for my INSERT behaviour, however the text area fields' data (which contains the HTML) is causing problems with my page in that the "" entered in the HTML is wrecking
my form.

Here is an example of the type of data this field can contain:
<input name="giftmessage" type="hidden" id="giftmessage" value="<p><font
face="Georgia" color="#cc9933">Test</font></p>">

I'm sure that the problem is the "" around the font face and colour attributes created by HTML Editor. Is there any way to code that form field value to ignore the "" or to get HTML Editor to not insert quotes?

Hope someone can help. Thanks.

Regards
Nath.

Replies

Replied 19 Mar 2007 14:01:24
19 Mar 2007 14:01:24 Nathon Jones replied:
No reply to my e-mails direct to DMXZone, having paid for one of their extensions, and no reply in these forums either. <img src=../images/dmxzone/forum/icon_smile_shock.gif border=0 align=middle>(

Getting a little frustrated with the lack of support offered by DMXZONE.

Is there anyone out there??

Regards
Nath.

Reply to this topic