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 / Current Version (Old)
 Required fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 15 July 2001 :  14:21:44  Show Profile  Visit tomasalsbro's Homepage
Hi,
whwn regitring as new member, some fields are required. How is the code and where do I find this code that makes this fields mandatory?
Cheers / Tomas

!-Keep distance in traffic-!
www.whiplash.se
www.whiplash.pp.se

Spoon
Average Member

Ireland
507 Posts

Posted - 15 July 2001 :  17:00:55  Show Profile  Visit Spoon's Homepage  Send Spoon an ICQ Message
quote:

Hi,
whwn regitring as new member, some fields are required. How is the code and where do I find this code that makes this fields mandatory?
Cheers / Tomas

!-Keep distance in traffic-!
www.whiplash.se
www.whiplash.pp.se



It isnt really that hard to do (if you want to know?).

eg

NAME = Request.Form("NAME")
If NAME = "" Then
Response.Write "You must enter a name, << GO BACK"
Response.End
End If

Regards,

Spoon, (ya all love me right?)
Go to Top of Page

mafifi
Junior Member

USA
308 Posts

Posted - 15 July 2001 :  17:53:25  Show Profile  Send mafifi an ICQ Message
To find the code that you are looking for, go to register.asp and here is the line that requires the e-mail address (lines 112 to 119):

If strAutoLogon <> 1 then
if Request.Form("Email") = "" then
Err_Msg = Err_Msg & "<li>You Must give an email address</li>"
end if
if EmailField(Request.Form("Email")) = 0 then
Err_Msg = Err_Msg & "<li>You Must enter a valid email address</li>"
end if
end if


However, I do not recommend that you delete any of the requirments that comes as a default with the Snitz download especially the E-mail address requirements. The E-mail field is used as a Primary Key field and if you delete this requirements you will end up with duplicate records. But if your intention is to add additional fields to be required, then I do not see any harm in doing that.

Thanks,

Mo
Go to Top of Page

jalberts
Starting Member

USA
32 Posts

Posted - 16 July 2001 :  12:23:44  Show Profile  Visit jalberts's Homepage  Send jalberts an ICQ Message
Actually the only "key" in the table is MEMBER_ID. Though the Email address is used by the application for uniqueness, the MEMBER_ID is the true unique identifier. So to answer the question, the Email address doesn't have to be unique, but you would probably have to alter the code a little to circumvent the checking of Email uniqueness.

quote:

However, I do not recommend that you delete any of the requirments that comes as a default with the Snitz download especially the E-mail address requirements. The E-mail field is used as a Primary Key field and if you delete this requirements you will end up with duplicate records. But if your intention is to add additional fields to be required, then I do not see any harm in doing that.

Thanks,

Mo



Jeff Alberts
Go to Top of Page

jalberts
Starting Member

USA
32 Posts

Posted - 16 July 2001 :  13:41:56  Show Profile  Visit jalberts's Homepage  Send jalberts an ICQ Message
I'm correcting myself here. There is an option in the Admin section under the Email server settings to let you choose whether a unique Email address is required of each user. So you could safely remove email address as a required field by turning off that option.

quote:

Actually the only "key" in the table is MEMBER_ID. Though the Email address is used by the application for uniqueness, the MEMBER_ID is the true unique identifier. So to answer the question, the Email address doesn't have to be unique, but you would probably have to alter the code a little to circumvent the checking of Email uniqueness.

quote:

However, I do not recommend that you delete any of the requirments that comes as a default with the Snitz download especially the E-mail address requirements. The E-mail field is used as a Primary Key field and if you delete this requirements you will end up with duplicate records. But if your intention is to add additional fields to be required, then I do not see any harm in doing that.

Thanks,

Mo



Jeff Alberts



Jeff Alberts
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 0.54 seconds. Powered By: Snitz Forums 2000 Version 3.4.07