...

View Full Version : Prevent field/ text area from any tags (script) help please..



mjs
02-18-2010, 06:01 AM
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...?

abduraooft
02-18-2010, 07:33 AM
To filter html tags, you could use strip_tags()

mjs
02-19-2010, 04:11 AM
ok.. nice suggestions...

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum