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
    mjs
    mjs is offline
    New Coder
    Join Date
    Jan 2010
    Posts
    97
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Prevent field/ text area from any tags (script) help please..

    Hi.. every one, i looking for simple script to prevent my form field or my text area from inputting any tags or script and also from long characters e.g.
    kakakdkadafpoadaodaofsafsfsafsafasfmsafmsafskdkafakfasfkasfsafasfmafsfksamfsmfasfasfmasfaksfasfkakfj safjsufsufnasfasfjafnasfjsafjsafjsajfsafasfasjfjafjajfafjsafajsfjasjfjasfjasjfajsfjasfjasjfjafjjdajf ajfjajaiqwieqieaifiuafuiafasfiusfiuiqiqiuwqiqwqiwiqwiqiwiqwiqwiqiwiqwqw
    anyone can help me...?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,855
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    To filter html tags, you could use strip_tags()
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    mjs
    mjs is offline
    New Coder
    Join Date
    Jan 2010
    Posts
    97
    Thanks
    17
    Thanked 0 Times in 0 Posts
    ok.. nice suggestions...

    but use strip_tags() also possible to prevent long character? (that can be) break the display become stretch.
    btw thank you


  •  

    Posting Permissions

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