Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Help with VBscript and forms

Hi,
I just finished stydying my 2nd tutorial on VBscript alert boxes but I seems that I still haven't figured out how to do what I want to do.
I'll try to explain it...if it's not clear you can find an example on this website www.namesdatabase.com . I tried to paste their code and figure it out but it didn't work.

It's a simple newsletter subscription. 2 fields, name and e-mail. I want that when the user clicks on submit an alert box pops up saying:

"Please verify the informations you entered:
- John Smith
- John@smith.com"

then if he clicks on cancel he can correct the mistakes if there is any. If he clicks on the OK button the form will be submitted (and I will receive an e-mail with the results, but I know this part) and he will be redirected to a "thank you" page ( I want his name and e-mail displayed in the "thank you" page as well, but I guess this is another issue).

What I can't figure out is how to make one button trigger all of these actions.

I know how to create an alert box that lists the data input in the form.
I know how to send me an e-mail with the results and redirect the visitor.
What I don't know is how to put it all together.

Thank you so much for your help!
[1308 byte] By [alley2006] at [2007-11-11 7:40:37]
# 1 Re: Help with VBscript and forms
in design mode, double click on your button: that will automatically create the OnClick event for you. Add your code there.
Marco
mstraf at 2007-11-11 17:26:36 >