Dealing with Unchecked Checkboxes
| From: | Graeme McLaren | Date: | Sat, 26 Oct 2002 20:02:12 +0000 |
| Subject: | Dealing with Unchecked Checkboxes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22712@lists.php.net to get a copy of this message | ||
Hey all, I'm trying to get my head around checkboxes. I can insert "checked"
checkboxes into a DB no problem but I get an error when the checkboxes are unchecked. I've
used the following to try and handle unchecked checkboxes but I still get the error "query was
empty" can anyone point me in the right direction?
$number=count($GiftWrapping);
for($a=0;$a<$number;$a++)
{
echo $GiftWrapping[$a];
if ( empty( $GiftWrapping ) )
{
$GW = 'N';
}
INSERT INTO DB CODE HERE
GiftWrapping = '$GW'";
}
Cheers in advance,
Graeme :)
Public Sub House()
On Error Resume drink
If Pint.empty = True Then
Pint.refill
Else
Pint.drink
End if
stomach.add Pint
MsgBox " I've had .... " & stomach.count & " Pints"
MsgBox "VERY DRUNK"
End Sub