|
From: Chris M. <Chr...@te...> - 2002-09-09 21:34:56
|
I'm having a huge problem with something that should be simple -
I'm using a series of checkboxes on a page, and if they are checked, then
everything is OK. But if they are not checked, then I have problems. When
I do something like this:
if ($apr->param($delete) == "on") { # $delete is the name of the checkbox
with an index, i.e. delete1, delete2, etc.
....
}
I get "Not a CODE reference at
/var/www/testsite/pkg/dns-0.01/testsite/Handler/Dns.pm line 335." if the box
being tested is not checked.
There is no more detail in the log even with DEBUG set to 5 in server.perl
I've tried using ref() to figure out what it is, but it returns nothing.
I've tried using defined() to check it and use a flag in my if instead of
the actual $apr thing. I've tried a simple '$foo = "off" unless (
$apr->param($delete) );'
and I just can't make it work at all. Anyone have any thoughts?
Chris McDaniel
Service Development Architect
TELUS Business Solutions
Voice.416.883.4610 Cell.416.676.4654
|