Question
Disallowing HTML in textarea / comment form
Hi,
I'm working on a simple blog using DW, PHP & MySQL, the comment form contains a textarea box where visitors can simply post their comments, the problem is what ever code you type in gets saved into the database as it is, and I someone posts a META Refresh tag for example, they can redirect the page to somewhere else.
How can i prevent that from happening and id there anyway to save the & call the html code as plain text?
Thanks in advance.
I'm working on a simple blog using DW, PHP & MySQL, the comment form contains a textarea box where visitors can simply post their comments, the problem is what ever code you type in gets saved into the database as it is, and I someone posts a META Refresh tag for example, they can redirect the page to somewhere else.
How can i prevent that from happening and id there anyway to save the & call the html code as plain text?
Thanks in advance.
