The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Quote:
PHP Code:
|
#3
|
|||
|
|||
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? |
#4
|
||||
|
||||
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:
|
#5
|
|||
|
|||
Ahh, I think I see now, Thanks for all your help the pair of you
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|