Re: Error undefined index

From: Date: Thu, 01 May 2003 17:56:23 +0000
Subject: Re: Error undefined index
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145990@lists.php.net to get a copy of this message
On Thursday 01 May 2003 21:37, Michael Timinger wrote: > I am running a form, containing a checkbox item: val_all > I sent the intem via POST and get the value by: > $v01=$_POST["val_all"]; > If the checkbox is empty, the following error message occurs: > Undefined Index: val_all > Whats going wrong? Nothing is going wrong. That is the normal behaviour -- if a checkbox is not checked then it will not appear in $_POST (or $_GET). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Let your conscience be your guide. -- Pope */

« previous php.general (#145990) next »