If the box isn't check, it doesn't set the value in the CGI value. 

Checked
MAIL=ON

Not checked


It just don't exist. 

Testing whether a path to an object variable exists is tricky, but here
goes

{
query: make object! decode-cgi-query system/options/cgi/query-string
either error? try [query/mail] [query-mail: FALSE ] [query-mail: TRUE]
}

This leaves you with a logic word query-mail, and whatever other form
variables were present in query/*

-Ted.

*********** REPLY SEPARATOR  ***********

On 1/21/2000 at 9:19 AM [EMAIL PROTECTED] wrote:

Hi,
I tried setting the reg key, and guess what... it started working! 

However, I now run a form with a checkbox (named "mail" and value="on")
If this box is checked, then there's no problem, but if it's unchecked,
I
get something like this in my script:

Invalid path: query/mail ....... etc... And no matter what I try
(any-type,
unset) etc, I still get the same error. Now, can this be because of me
not
using this stuff?:

        >either none? system/options/cgi/query-string [
        >         ""
        >         ][
        >         system/options/cgi/query-string
        >         ]



Reply via email to