|
From: Chris W. <ch...@cw...> - 2002-09-09 21:57:29
|
* Chris McDaniel (Chr...@te...) [020909 17:46]:
> 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.
> ....
> }
My first impression is to split out what you're doing (plus use the
right comparison):
my $is_checked = $apr->param( $delete );
if ( $is_checked eq 'on' ) {
...
}
Other than that, are you having any other issues with Apache::Request?
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988
|