Solved

textbox validation

Posted on 1998-10-30
2
192 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 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

10 Experts available now in Live!

Get 1:1 Help Now