RE: [PHP] testing for 0

2003-02-28 Thread Bryan Lipscy
See isset() and empty()

-Original Message-
From: Steve Buehler [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 10:29 AM
To: PHP
Subject: [PHP] testing for  0


I have a form that has input for minutes.  My problem is that I am
trying 
to test to see if the field is blank or not and if they enter a 0
(zero), 
my test always show it as blank.  I have tried !$timemb and 
!is_numeric($timemb).

Thank You
Steve


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] testing for 0

2003-02-28 Thread Leif K-Brooks
Try $timeb  ''.

Steve Buehler wrote:

I have a form that has input for minutes.  My problem is that I am 
trying to test to see if the field is blank or not and if they enter a 
0 (zero), my test always show it as blank.  I have tried !$timemb 
and !is_numeric($timemb).

Thank You
Steve

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] testing for 0

2003-02-28 Thread Ernest E Vogelsinger
At 19:28 28.02.2003, Steve Buehler spoke out and said:
[snip]
I have a form that has input for minutes.  My problem is that I am trying 
to test to see if the field is blank or not and if they enter a 0 (zero), 
my test always show it as blank.  I have tried !$timemb and 
!is_numeric($timemb).
[snip] 

How about some code?


-- 
   O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
^ http://www.vogelsinger.at/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] testing for 0

2003-02-28 Thread Steve Buehler
There we go.  Thank You so much.  I also found that I had another error in 
my script and !is_numeric($timemb) did work after all.

Steve

At 10:41 AM 2/28/2003 -0800, you wrote:
See isset() and empty()

-Original Message-
From: Steve Buehler [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:29 AM
To: PHP
Subject: [PHP] testing for  0
I have a form that has input for minutes.  My problem is that I am
trying
to test to see if the field is blank or not and if they enter a 0
(zero),
my test always show it as blank.  I have tried !$timemb and
!is_numeric($timemb).
Thank You
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] testing for 0

2003-02-28 Thread Leo Spalteholz
On February 28, 2003 10:41 am, Leif K-Brooks wrote:
 Try $timeb  ''.


Well whatta ya know I learn something new every day..  I thought the 
only valid not equal operator was !=...  I'm used to using  only 
for SQL server stored procedures or VB..

leo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php