> or remove the {$len} to not check for a length
>
Sorry I meant replace the above with *
m:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROT
$id = '10002'; //comes from form
$defaultvalue = '13';
$id = intval($id);
if (($id<1)||($id>)) $id = $defaultvalue;
echo $id;
Zliy Pes, http://zliypes.com.ua
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
> Ok for the question. I was under the impression that PHP would
> automatically
> select the type for the vars to use. However if I have a field in my form
> where I insert only a 4 in I'd expect the var to be an integer
> (or atleast
> some other whole number type of var). However is_int fails
Hey there,
First of all please CC me as I'm no longer a member on this list. Sorry about
that but I receive too much :-(.
Please bear with me as I'm a new PHP scripter on the block
Ok for the question. I was under the impression that PHP would automatically
select the type for the vars to
4 matches
Mail list logo