Is it possiable to let form submit only when all validation successful in VB
script?

For example, I have the function "ValidateContactForm()" to do the form
validation. I only want to submit form when the function return true. I
know it is possiable fron Java Script -- onsubmit="return
ValidateContactForm();"

But I don;t know how to do that from VB Script?

Please help!

Thanks,

Re: form validation for VB script by Thomas

Thomas
Thu Dec 08 16:40:38 CST 2005

You are aware that VBScript is only supported in IE browsers client-side, and should only be used
within a intranet web site where you know all browsers will be IE. JavaScript is the best option for
client side scripting.

VBScript can be used server-side to validate a form via function.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

"How to control onsubmit from VB script" <How to control onsubmit from VB
script@discussions.microsoft.com> wrote in message
news:FEB7DAEA-249C-405C-97FC-83CEBAF9C33D@microsoft.com...
> Is it possiable to let form submit only when all validation successful in VB
> script?
>
> For example, I have the function "ValidateContactForm()" to do the form
> validation. I only want to submit form when the function return true. I
> know it is possiable fron Java Script -- onsubmit="return
> ValidateContactForm();"
>
> But I don;t know how to do that from VB Script?
>
> Please help!
>
> Thanks,
>
>



Re: form validation for VB script by p

p
Fri Dec 09 12:03:25 CST 2005

Suggestion: Instead of putting the subject in the sender field, you may
want put a name or a screen name. It makes it confusing and annoying (at
least to me). Of course, it's your choice.

The easier you make it for people to want to read and answer your post,
the more chances you have to get answers.