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 information in Profiles
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tjhilder
Junior Member

United Kingdom
110 Posts

Posted - 28 August 2004 :  00:18:41  Show Profile  Visit tjhilder's Homepage
Hi,

How do I make other parts of the registeration/edit profile so that you need to fill them in otherwise you can't register or edit your profile until you do.

for example, Country & Gender need to be filled out at registeration.

Regards
TJ

"I must have a bad immune system because I catch colds better then I catch trains" - TJ 2004

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 28 August 2004 :  05:06:02  Show Profile  Visit HuwR's Homepage
before reqiring that your members must provide this info, you should investigate how it will affect you with regards to the data protection act
Go to Top of Page

tjhilder
Junior Member

United Kingdom
110 Posts

Posted - 28 August 2004 :  05:34:20  Show Profile  Visit tjhilder's Homepage
hmm, never thought about it that way

"I must have a bad immune system because I catch colds better then I catch trains" - TJ 2004
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 28 August 2004 :  06:19:01  Show Profile  Visit HuwR's Homepage
I think country would be OK, but gender is personal information, so you should be careful if you make it compulsory.

To answer your initial question,
You need to look in pop_profile.asp for code similar to this

if trim(Request.Form("Name")) = "" then 
      Err_Msg = Err_Msg & "<li>You must choose a UserName</li>"
end if
It will occur in a couple of places, just insert the following code after the "end if"
if trim(Request.Form("Country")) = "" then 
       Err_Msg = Err_Msg & "<li>You must choose a Country</li>"
end if


do the same for any other items you require
Go to Top of Page

TheBigSnake
Junior Member

154 Posts

Posted - 11 January 2005 :  16:28:13  Show Profile
I can't get this to work!

I am trying to make so that you must enter First Name

Locatet:
if trim(Request.Form("Name")) = "" then
Err_Msg = Err_Msg & "<li>You must choose a UserName</li>"
end if

2 places in pop_profile.asp

Under both I have written:

if trim(Request.Form("FirstName")) = "" then
Err_Msg = Err_Msg & "<li>You must enter First Name</li>"
end if

No results.. ?

Edited by - TheBigSnake on 11 January 2005 17:35:02
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 11 January 2005 :  18:40:47  Show Profile
TheBigSnake,

The place you need to put the code is in register.asp:
		if trim(Request.Form("FirstName")) = "" then
			Err_Msg = Err_Msg & "<li>You Must give a First Name</li>"
		end if
Find the following code:
		if strAutoLogon <> 1 then
			if trim(Request.Form("Name")) = "" then
				Err_Msg = Err_Msg & "<li>You must choose a UserName</li>"
			end if
		end if
and place it under that.

I hope that helps.

Cheers,

David Greening
Go to Top of Page

TheBigSnake
Junior Member

154 Posts

Posted - 11 January 2005 :  21:06:08  Show Profile
Thx..
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07