Print Page | Close Window

Form Validation

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17478
Printed Date: 29 March 2026 at 2:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Form Validation
Posted By: Altoid
Subject: Form Validation
Date Posted: 07 December 2005 at 12:16pm
Need help with the code below, it works fine with one value however when trying to check them all at once it gives a string error. Any ideas?
 
 
If strCourseName or strCourseTutor or strCourseLocation = "" Then
blnError = True
End If
 
Thanks



Replies:
Posted By: ljamal
Date Posted: 07 December 2005 at 5:46pm
it should be:

If strCourseName="" or strCourseTutor ="" or strCourseLocation = "" Then
blnError = True
End If



-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net