Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 3rd, 2003, 07:50 PM
Authorized User
 
Join Date: Jun 2003
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin
Default Looping through variables, Applying a function

Hi Everyone,

Im currently doing server side validation, and trying to validate user input for valid charaters. I have written a Function to handle this and works really well. How ever im trying to applying it to multiple variables.

What i need to do is formulate a loop to check IsValidChar on variable i assign to be checked.

Eg, I have 4 variables FirstName, LastName, Email, Password

I want to check FirstName, LastName and Password if they are valid Characters.

I know i can do if statements for them(see below) but i want to save time and reduce coding) here is my example:

<%

If IsCharValid(VariableBeingChecked) = false Then
ErrMsg = VariableBeingChecked & " Contains Invalid Characters<BR>"
End If

%>

Thanks in advance

PS. Thankyou Ken for your excellent Validation on OpenStatic

Tim :)

TDA
__________________
TDA





Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping with When Condition along with Variables pixelheart XSLT 1 December 6th, 2007 11:52 AM
Is it better to pass variables to a function? stephen_c_ Beginning PHP 3 November 4th, 2005 05:07 AM
testing variables in a function Hudson40 Access VBA 2 February 17th, 2005 09:46 AM
Dir function and looping through all files naeem VB How-To 2 May 13th, 2004 12:01 PM
Returning variables from a function starsol Beginning PHP 1 September 11th, 2003 12:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.