Forums

This topic is locked

No HTML in guestbook

Posted 26 Mar 2003 19:40:50
1
has voted
26 Mar 2003 19:40:50 Rafi Mellado posted:
Hi all,
I have a guestbook I created a while back with DMX, using ASP, JavaScript and Access.
Lately I've been having problems with people posting their political opinions, through scripts that open pop up windows, etc...
and I want it to stop.
How do I block certain or in worst case scenario all html code from being executed when it appears in my guestbook?
Any help would be greatly appreciated.
Thanks ahead of time
Darkkave
The guest book is:
www.xtremepaintball.bz/libronew.asp

"If it weren't for the last minute, nothing would get done."

Replies

Replied 29 Mar 2003 04:08:19
29 Mar 2003 04:08:19 Dave Thomas replied:
u can use HTML.Encode on your message field. That will stop the execution and instead display the html tags instead. bit ugly for what your after, there may be a better way.

Regards,
Dave

UD4 | Flash 5 | SQL | Access | ASP/VBScript | XP-Pro
Replied 04 Apr 2003 12:27:52
04 Apr 2003 12:27:52 Rafi Mellado replied:
Thanks for the advice, but how do you use HTML.encode?
I don't think I've ever used it before.
Thanks

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
u can use HTML.Encode on your message field. That will stop the execution and instead display the html tags instead. bit ugly for what your after, there may be a better way.

Regards,
Dave

UD4 | Flash 5 | SQL | Access | ASP/VBScript | XP-Pro
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic