Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 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
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts

  • #3
    New Coder
    Join Date
    Sep 2006
    Location
    Lithuania
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    also look at function htmlspecialtags()


  •  

    Posting Permissions

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