RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
> 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

Re: [PHP] is_int with HTML FORM

2001-11-30 Thread Valentin V. Petruchek
$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

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
> 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

[PHP] is_int with HTML FORM

2001-11-30 Thread TD - Sales International Holland B.V.
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