Web Analytics Made Easy -
StatCounter How Preventing HTML Tag go in Database? - CodingForum

Announcement

Collapse
No announcement yet.

How Preventing HTML Tag go in Database?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How Preventing HTML Tag go in Database?

    I have a some problem. when user maybe suddenly or not inserting some word like "<table>" or some other 'html' or 'java script' tag. this will cause the whole webpage error or display change.

    how to prevent this thing?

    I try to using regular expression to change the input before save into data base but I'm not good in regular expression syntax. it confuse me T_T

    please help ^_^ or any other solution?

  • #2
    strip_tags()

    Comment


    • #3
      also look at function htmlspecialtags()
      Free php image upload script
      Personal web developing blog

      Comment

      Working...
      X