Solved

textbox validation

Posted on 1998-10-30
2
193 Views
Last Modified: 2013-12-25
hi,
I've a form which contains four textboxes.i have to validate the textboxes before i click the submit button.
i have written the code in the onclick()event of the submit button.Though i'm able to validate this but the form gets posted to the asp i've mentioned.In javascript i heard its possible but i want this to be done in vbscript.please let me know with code.thanx.
0
Comment
Question by:rvsamuel
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1856041
make the submit button like this:

<input type="submit" onClick="return Validate()">


The function Validate() should then return "true" or "false".
If true then the form is submitted, if false, then it's not submitted.

Why use VBScript for this ? Or do you mean server-side script (ASP) ?

0
 

Author Comment

by:rvsamuel
ID: 1856042
no i want the validations to be done at the client's side thats why i want it in vbscript.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now