Re: Empty textfield

From: Date: Wed, 18 Dec 2002 23:09:46 +0000
Subject: Re: Empty textfield
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128788@lists.php.net to get a copy of this message
<? if(empty($_POST['nameOfSomeTextField'])) { // it was empty } ?> <? // untested!! if(!isset($_FILES['nameOfFileField'])) { // there wasn't a file } ?> read ALL of http://www.php.net/manual/en/features.file-upload.php I'm assuming php >= 4.1.1 Justin on 19/12/02 2:33 AM, shaun (shaun@mania.plus.com) wrote: > Hi, > > what is the best way to check if a textfield is empty, and is it the same > for file fields? > > thanks for your help > > Justin French -------------------- http://Indent.com.au Web Development & Graphic Design --------------------

« previous php.general (#128788) next »