EmbeddedRelated.com
Forums

RabbitWeb HTML Form CheckBox

Started by David Troike September 9, 2005
I am trying to pass a interger from a check box and not having much
success.

I want to provide a check box to indicate SMTP outgoing
authorization.

Any one else do something similar? Here is my code

//---------------Variables
int web_EmailServerAuth;
web EmailServerAuth

//----------------HTTP Code
<INPUT TYPE="checkbox" NAME="EmailServerAuth"
VALUE="<?z if($EmailServerAuth==0 )?>
1
<?z } ?>
<?z if($EmailServerAuth==1 )?>
0
<?z } ?>"
<?z if($EmailServerAuth==1 ) { ?>
CHECKED
<?z } ?> >

Outgoing Email Server Requires Authorization


See section 3.4 of the latest manual. A section was added about
checkboxes.

http://www.rabbitsemiconductor.com/documentation/docs/modules/RabbitWe
b/RabbitWeb.pdf

--- In rabbit-semi@rabb..., "David Troike" <dave@m...> wrote:
> I am trying to pass a interger from a check box and not having much
> success.
>
> I want to provide a check box to indicate SMTP outgoing
> authorization.
>
> Any one else do something similar? > Here is my code
>
> //---------------Variables
> int web_EmailServerAuth;
> web EmailServerAuth
>
> //----------------HTTP Code
> <INPUT TYPE="checkbox" NAME="EmailServerAuth"
> VALUE="<?z if($EmailServerAuth==0 )?>
> 1
> <?z } ?>
> <?z if($EmailServerAuth==1 )?>
> 0
> <?z } ?>"
> <?z if($EmailServerAuth==1 ) { ?>
> CHECKED
> <?z } ?> >
>
> Outgoing Email Server Requires Authorization



This helped a lot Thanks for the information.

--- In rabbit-semi@rabb..., "bmurthazw" <bmurthazw@y...> wrote:
> See section 3.4 of the latest manual. A section was added about
> checkboxes.
>
> http://www.rabbitsemiconductor.com/documentation/docs/modules/RabbitWe
> b/RabbitWeb.pdf
>