![]() |
Disable HTML in Forms
Hi. I was just wondering. When you're making your own thing like a guestbook or something like that, how do you going about allowing or disallowing HTML in the forms in order to prevent bad input?
Any help is much appreciated. |
Quote:
PHP Code:
|
Thanks, so how would I use that, Do I just put it somewhere on the page?
Also, would it work in a non vB powered page? |
htmlspecialchars() is a standard PHP function and will work on any PHP page. htmlspecialchars_uni() will only work on pages powered by vBulletin.
Run htmlspecialchars() on the variable that contains the input from the form, for example: PHP Code:
|
Ahh, I think I see now, Thanks for all your help the pair of you :D
|
All times are GMT. The time now is 08:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|