Question
problem with HTML in value of a hidden form field?
Hi,
I am using DMXZONE's 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. Is
there any way to code that form field value to ignore the ""?
Hope someone can help (no-one in at DMX Zone it would appear). Thanks.
Regards
Nath.
I am using DMXZONE's 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. Is
there any way to code that form field value to ignore the ""?
Hope someone can help (no-one in at DMX Zone it would appear). Thanks.
Regards
Nath.
