![]() |
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 |
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:
|
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. |
Thanks guys. that helps a lot!
|
All times are GMT. The time now is 04:59 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:
|