form validation for VB script

  • Thread starter How to control onsubmit from VB script
  • Start date
H

How to control onsubmit from VB script

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,
 
T

Thomas A. Rowe

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
(e-mail address removed)> wrote in message
news:[email protected]...
 
P

p c

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top