I used

my $IA = param('IA');
$IA = "(no answer)" if(/$IA/) eq (//);

so the words (no answer) came up for a blank IA

Helen

"Simon K. Chan" wrote:

> Hi Everyone,
>
> Let's say I have this snippet of code for a checkbox:
>
> <input type=checkbox name="bill">
>
> $name = param('bill');
>
> If the box is checked, $name will have a value of "on"
> If the box is NOT checked, $name will be undefined (have no value).
>
> My Question:
> Is there a way to make $name have a value of "off" when the box is UNCHECKED?
>
> Many thanks for your time, Everyone.
>
>
>
> =====
> #########################################
> Warmest Regards,
> Simon K. Chan - [EMAIL PROTECTED]
>
> "Great spirits have always encountered violent opposition from mediocre minds."
>
> -Albert Einstein
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to