Re: script not stopping

From: Date: Tue, 08 Jul 2003 00:28:36 +0000
Subject: Re: script not stopping
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-154269@lists.php.net to get a copy of this message
try that if (!isset($_POST["imgList"]) || empty($_POST["imgList"])){ for the comparison. Thomas On Mon, 7 Jul 2003 16:02:21 -0600 montmica@isu.edu (Micah Montoy) wrote: > How do I specify it that I just want to check to see if the form field was > blank and if so, inform the user? I know I could do this with JavaScript > but I need to be able to do correct conditions. > > thanks > > > > "Paul Chvostek" <paul+php@it.ca> wrote in message > news:20030707213050.GA54434@mail.it.ca... > > On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote: > > > > > > if ($_POST["imgList"] = ""){ > > > > You're *assigning* a variable in this condition. > > > > -- > > Paul Chvostek <paul@it.ca> > > it.canada > > http://www.it.ca/ > > Free PHP web hosting! > > http://www.it.ca/web/ > > > >

« previous php.general (#154269) next »