Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Required fields in membership details
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Carabosse
Starting Member

United Kingdom
36 Posts

Posted - 28 December 2002 :  11:12:02  Show Profile
Sorry if this is a silly newbie question, but I would like to make more of the details in the membership application (register.asp) "required" fields.

Any straightforward way of doing this?

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 December 2002 :  17:04:02  Show Profile  Send ruirib a Yahoo! Message
Just check the code in register.asp. The validation code starts around line# 210. It's always done in the same way:

                   if not IsValidString(trim(Request.Form("Name"))) then
			Err_Msg = Err_Msg & "<li>You may not use any of these chars in your username  !#$%^&*()=+{}[]|\;:/?>,<' </li>"
		  end if


A test to validate the desired form field and then, if the validation fails, another message is added to Err_Msg

All aditional tests need to be done this way. Test the field you want, check it to see if it's empty or has a bad value (depending on the field, of course) and then add a list item to the Err_Msg, describing the concrete error situation encountered.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 28 December 2002 17:04:20
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.99 seconds. Powered By: Snitz Forums 2000 Version 3.4.07