RE: [PHP] Checkboxes / Undefined Variables

From: Date: Wed, 14 Nov 2001 06:09:38 +0000
Subject: RE: [PHP] Checkboxes / Undefined Variables
Groups: php.general 
Request: Send a blank email to php-general+get-74542@lists.php.net to get a copy of this message
use : @$name_of_chechbox_3 to suppress warnings or at the start of the file do : if (!isset($name_of_chechbox_3)) $name_of_chechbox_3 = ""; or something similar -----Original Message----- From: afrodriguez@att.net [mailto:afrodriguez@att.net] Sent: Wednesday, November 14, 2001 5:03 PM To: php-general@lists.php.net Subject: [PHP] Checkboxes / Undefined Variables In am HTML form, checkboxes NOT checked are not passed to the PHP script called by the form. Therefore, if $name_of_chechbox_3 is not passed but it's used in the PHP script, it results in "Warning: Undefined Variable". How can I avoid this? Thanks! A. F. Rodriguez (afrodriguez@att.net) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#74542) next »