|
-
Mar 18th, 2002, 02:00 PM
#1
Thread Starter
Member
Stopping a form from submitting with VBSCript
I am trying to run a Validation function that is called when the submit button is clicked. The function checks the defined restrictions on the form, and if there is an error found, sets the status variable to 1. If there are not errors, the Status variable stays a 0. this is the next if statement I have:
IF Status = "0" THEN
document.form.submit()
ELSE
return false
END IF
the return false should stop the form from submitting. This is a JavaScript function, but I thought I was the same in VBScript, but unfortunately, the form still dispalys the errors, but also submits. Does anyone know how to keep a form from not submitting?
Steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|