checkbox doesn't pass?

From: Date: Thu, 04 Apr 2002 12:23:17 +0000
Subject: checkbox doesn't pass?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91504@lists.php.net to get a copy of this message
I have a html form with some "text" (T1) and "checkbox" (C1) fields to pass it to a php script. Accessing "text" fields has no problem. There is a problem when I use $C1=$HTTP_POST_VARS['C1'] to take the value of C1 (ON) If it is not checked, then it is not set at all. (??why??) So I use : if (!isset($C1)) { $C1="0" } but still I get an warning that C1 is not set, on my screen. That happens before the use of isset function. How can I susspent this warning message? What's wrong? Makis Savaidis Thessaloniki Greece

« previous php.general (#91504) next »