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: MOD Implementation
 Required Fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

techknow
Junior Member

USA
149 Posts

Posted - 19 December 2004 :  20:39:55  Show Profile  Visit techknow's Homepage
I need to make the following fields manditory on the registration page...

First Name, Last Name, City, State, and email.

I know this should be easy.

I hope...

Best Regards,
Techknow
http://myinternetfunnies.com

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 20 December 2004 :  00:51:46  Show Profile
techknow,

in register.asp you need to add the following just below:
		strEncodedPassword = sha256("" & trim(Request.Form("Password")))

		Err_Msg = ""

		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

Here it is:
		if trim(Request.Form("FirstName")) = "" then
			Err_Msg = Err_Msg & "<li>You Must give a First Name</li>"
		end if
		if trim(Request.Form("LastName")) = "" then
			Err_Msg = Err_Msg & "<li>You Must give a Last Name</li>"
		end if
		if trim(Request.Form("City")) = "" then
			Err_Msg = Err_Msg & "<li>You Must enter a City</li>"
		end if
		if trim(Request.Form("State")) = "" then
			Err_Msg = Err_Msg & "<li>You Must give enter a State</li>"
		end if


I will not put the line numbers as they all change from register.asp to register.asp, but you will find the spot at about line: 240. I will also not worry about the e-mail as the e-mail is a required field already.

I hope that helps..

Cheers,

David Greening
Go to Top of Page

techknow
Junior Member

USA
149 Posts

Posted - 20 December 2004 :  11:33:23  Show Profile  Visit techknow's Homepage
Outstanding!


I knew it was easy, sometimes I just can't see the solution, I am not sure why.




Best Regards,
Techknow
http://myinternetfunnies.com
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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07