Stop people entering HTML tags?

Results 1 to 2 of 2

Thread: Stop people entering HTML tags?

  1. #1
    Join Date
    Dec 1969

    Default Stop people entering HTML tags?

    I have a web site with a back-end where people login and add/modify their own details.<BR><BR>These details are then displayed in a standard search/retrieve system on the site.<BR><BR>I&#039;ve just noticed that if someone were to include some HTML tags in one of their fields, it could seriously mess up the display on my pages. For example, if they stuck in &#060;/td&#062;&#060;/tr&#062; it would close my cell row, and really bugger it up. I don&#039;t mind them putting in some html, like links etc, but if they make a mistake it can really make my site like bad to users.<BR><BR>Has anyone come across this? Are there any standard ways of checking for it in the error checking of my modify pages?<BR><BR>Any suggestions would be gratefully received.

  2. #2
    Join Date
    Dec 1969

    Default You can strip the HTML tags out of their

    code. There are good examples on the 4Guys site like the following:<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts