Question
Preventing HTML from being posted in form?
I have a simple guestbook that I put together myself.
When people enter their name, address, comments, etc, it sends me a copy of
what they posted, and sends them an email that thanks them for signing.
If the copy that I get is out of bounds, I have a admin page that lets me
delete the post. If the email to them bounces, then I know that they didn't
enter a valid email and I will also delete those posts.
Lately, some yahoo has posted in the comments actual code that displays a
frame that completely covers up my guestbook and says something like "haha,
I hijacked your board".
I wish I hadn't deleted the post, because I would like to look at it now to
see how he did it.
I want to prevent anybody from posting any code in the comments field. What
is the easiest way to do that?
Thanks,
Kirk
When people enter their name, address, comments, etc, it sends me a copy of
what they posted, and sends them an email that thanks them for signing.
If the copy that I get is out of bounds, I have a admin page that lets me
delete the post. If the email to them bounces, then I know that they didn't
enter a valid email and I will also delete those posts.
Lately, some yahoo has posted in the comments actual code that displays a
frame that completely covers up my guestbook and says something like "haha,
I hijacked your board".
I wish I hadn't deleted the post, because I would like to look at it now to
see how he did it.
I want to prevent anybody from posting any code in the comments field. What
is the easiest way to do that?
Thanks,
Kirk