The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
using globalize(STR_NOHTML, INT, etc...)
I am trying to use vB's globalize function to check, trim, and validate data. I am using this:
PHP Code:
1. if field2 is not an integer, how do I know or check? 2. if field1 is required is there an argument that will check that the field is not blank. for example something like 'field1'=>STR_NOHTML, REQUIRED thanks in advance eric |
#2
|
||||
|
||||
Globalize doesn't check it, just forces it as that. So if the integer is an A, it will be set as 0.
For making it required, you could do a a check like: PHP Code:
|
#3
|
||||
|
||||
1. You don't know, it will just be zero then.
If you want to check oyu must use $_REQUEST['field1'] 2. No. If it is required you must check this yourself and issue an error if it is empty. |
#4
|
||||
|
||||
Thanks guys. that helps a lot!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|