Re: Why does the msgbox does not work?



"§Chrissi§" <anubisofthydeath@xxxxxxxxxxx> wrote in message
news:O39N3wTqFHA.3520@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,
>
> Why does the msgbox does not work (code is at the bottom)? By the way, if
I change
> <INPUT TYPE="submit" NAME="cmdConf" value="Confirm" />
>
> to
>
> <INPUT TYPE="button" NAME="cmdConf" value="Confirm" />
>
> and change Sub cmdConf_OnSubmit() to Sub cmdConf_OnClick(), it works.
>
> Why does <INPUT TYPE="submit" NAME="cmdConf" value="Confirm" /> not work?

Change you 'Sub' line from:

Sub cmdConf_OnSubmit()

To:

Sub f_OnSubmit()

It is the form you are submitting, not the button.


.