Re: [PHP] checking for null form fields fails

2001-08-09 Thread Renze Munnik
On Wed, Aug 08, 2001 at 09:14:56AM -0700, Bjorn Van Simaeys wrote: Hey Renze, Don't you think that checking too much is useless and takes a bite out of your performance too? Don't waste your time. Greetz, Bjorn Van Simaeys www.bvsenterprises.com That's right... Checking

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
On Tue, Aug 07, 2001 at 11:58:51AM -0600, mike cullerton wrote: i don't use echo either. i use printf. i was just trying to pass along some things i learned reading the manual that were related to the topic. Cool... finaly. You won't believe how many people use echo(). And I realy don't know

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
On Tue, Aug 07, 2001 at 09:26:48AM -0700, Mark Maggelet wrote: This isn't right, empty() won't give an error if $input isn't set. That's true. Empty() doesn't return an error when $input isn't defined. I didn't RT(F)M on this one. I always use (!isset($something) empty($something)) to check

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
On Wed, Aug 08, 2001 at 10:06:51AM +0200, Renze Munnik wrote: (...) checks the returnvalue of printf() and stuff (another thread in this list). oops... it's the same thread... I NEED COFEE!!! -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Bjorn Van Simaeys
Hey Renze, Don't you think that checking too much is useless and takes a bite out of your performance too? Don't waste your time. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- Renze Munnik [EMAIL PROTECTED] wrote: On Tue, Aug 07, 2001 at 09:26:48AM -0700, Mark Maggelet wrote:

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Renze Munnik
On Mon, Aug 06, 2001 at 12:31:38PM -0700, Mark Maggelet wrote: i can't tell if it's just a email formatting thing, but if there's a line break in the onsubmit string it might mess things up. It no _might_ mess things up... It sure does! Good one. But... another thing. You just might want to

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 09:23:02AM -0600, mike cullerton wrote: on 8/7/01 2:43 AM, Renze Munnik at [EMAIL PROTECTED] wrote: On Mon, Aug 06, 2001 at 12:31:38PM -0700, Mark Maggelet wrote: i can't tell if it's just a email formatting thing, but if there's a line break in the onsubmit

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Mark Maggelet
Well, Mark... almost! You shouldn't use empty() _instead_ of isset(). You should use 'm together: if (isset ($input) !empty($input)) { print (Okay... form is completed!); } else { print (No way... can't do!); } Because, when you check using empty($input) there's still the possibility

Re: [PHP] checking for null form fields fails

2001-08-07 Thread mike cullerton
on 8/7/01 9:40 AM, Renze Munnik at [EMAIL PROTECTED] wrote: a couple things. although i agree with the general notion of using braces, return is not a function (the manual calls it a statement), and atleast from what i can find in the manual it doesn't take braces.

[PHP] checking for null form fields fails

2001-08-06 Thread garman
For all of my HTML forms, I put in some JavaScript to check and make sure no fields are left blank. When the forms are processed in PHP, I also perform a check to make sure the forms fields aren't null (redundant, I know). Anyway, on a form I just made, both JavaScript and PHP think the form

Re: [PHP] checking for null form fields fails

2001-08-06 Thread Mark Maggelet
On Mon, 6 Aug 2001 13:56:45 -0500, garman ([EMAIL PROTECTED]) wrote: For all of my HTML forms, I put in some JavaScript to check and make sure no fields are left blank. When the forms are processed in PHP, I also perform a check to make sure the forms fields aren't null (redundant, I know).