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)
 way to make "country" mandatory
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kittycat
Starting Member

29 Posts

Posted - 31 December 2004 :  15:14:03  Show Profile
I use verions 3.4.03 and would like to know if there is a mod or any way to make Country a mandatory field when people register.

Thank you!


Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 31 December 2004 :  16:37:54  Show Profile
Kittycat,

In register.asp look for 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 below that add the following:
		if trim(Request.Form("Country")) = "" then
			Err_Msg = Err_Msg & "<li>You Must Enter a Country</li>"
		end if

That will make the Country field mandatory. I will not give you the line numbers as they change from file to file, depending on what mods you have done, but I am sure that you find it.

Cheers,

David Greening
Go to Top of Page

kittycat
Starting Member

29 Posts

Posted - 31 December 2004 :  18:40:07  Show Profile
Groovy! Thank you.

Secondary question: where do I find the table used on the registration form so I can add an astrisk next to country to identify it as a required field?

Thank you, again, and Happy New Year!

Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 02 January 2005 :  16:18:05  Show Profile
Kittycat,

Sorry for the late reply, but look in inc_profile.asp for the following:
	if strCountry = "1" then
		Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Country: </font></b></td>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
				"                      <select name=""Country"" size=""1"">" & vbNewLine
		if strMode <> "Register" then
			Response.Write("                           <option selected value=""" & rs("M_COUNTRY") & """>" & ChkString(rs("M_COUNTRY"), "display") & "</option>" & vbNewLine)
		else
			Response.Write	"                           <option value=""""></option>" & vbNewLine
		end if
		Response.Write	"                           <option value="""">None</option>" & vbNewLine
%>
		<!--#INCLUDE FILE="inc_countrylist.asp"-->
<%
		Response.Write	"                      </select></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
	end if
Then just add the following infront of Country::
<font color=""" & strHiLiteFontColor & """>*</font>
I trust that helps.

Cheers,

David Greening
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