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

Billbo
Starting Member

USA
9 Posts

Posted - 02 February 2005 :  08:56:24  Show Profile  Send Billbo a Yahoo! Message
For my company's discussion forums, we require more information than just the Username, E-mail address, and Password during registration. We would like a required First Name, Last Name, City, State, and Occupation. Saying that, I surfed the forums and found good examples on modifying REGISTER.ASP. I added the code below and it appears to work correctly.

'#####################################################################################
'# Modification. Added additional required fields. Firstname, Lastname, City, State, Country, and Occupation.
'#####################################################################################
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 give a City</li>"
end if
if trim(Request.Form("State")) = "" then
Err_Msg = Err_Msg & "<li>You Must give a State</li>"
end if
if trim(Request.Form("Country")) = "" then
Err_Msg = Err_Msg & "<li>You Must give a Country</li>"
end if
if trim(Request.Form("Occupation")) = "" then
Err_Msg = Err_Msg & "<li>You Must give an Occupation</li>"
end if
'#####################################################################################

Now for the stupid question. I have looked over POP_PROFILE.ASP numerous times attempting to determine how and where to properly insert the * indicating the associated field is required but can't seem to locate the code? Just how and where do I make this happen? Thanks.

Bill Bowen
IS Manager
KC-135 ATS

TStewartFan
Junior Member

190 Posts

Posted - 02 February 2005 :  09:44:34  Show Profile  Visit TStewartFan's Homepage
Bill,

In the pop profile just do a ctrl f and paste in the text you see displayed within the browser. The cells do exists because I just finished modifying my entire site. It may be in multiple places though (i.e. edit view, ect...) Just find them all and insert the asteric where neeeded. You may want to take it one step further though and make the asteric invisible and have it only display if for instance part of the validation never occurred. But that requires a bit more coding then the validation you are doing above.

If You Have to Ask, You Wouldn't Understand.
Go to Top of Page

Billbo
Starting Member

USA
9 Posts

Posted - 02 February 2005 :  11:32:51  Show Profile  Send Billbo a Yahoo! Message
I am confused as to just where in POP_PROFILE.ASP I am supposed to be doing this pasting for the astericks. What cells?

Bill Bowen
IS Manager
KC-135 ATS
Go to Top of Page

TStewartFan
Junior Member

190 Posts

Posted - 02 February 2005 :  12:10:45  Show Profile  Visit TStewartFan's Homepage
They will be the only cells that contain the text you see on screen between these characters > < For example in mine it reads as follows:

<td class=""topiclight"" align=""right"" width=""10%"" nowrap>E-mail User: </td>

Around line 352 AND 648. If you notice on the pop profile screen as you are looking at it in a web browser, there is a field called E-Mail User. All You would need to do is change both of these lines to look like this:
<td class=""topiclight"" align=""right"" width=""10%"" nowrap> * E-mail User: </td>

Add a little color to it and thats all she wrote. Just be sure to look for the text in multiple places....because it will be in at least 2 areas. My page is much different then yours but should be close to where your text is located.

If You Have to Ask, You Wouldn't Understand.
Go to Top of Page

Billbo
Starting Member

USA
9 Posts

Posted - 02 February 2005 :  13:51:36  Show Profile  Send Billbo a Yahoo! Message
Ahhh...I see now. Simply add the asterick to each field's label. That's easy enough. (I should have thought of that on my own!) How do I change the asterick's color to red? Regardless, thanks TStewartFan. You been alot of help.

Bill Bowen
IS Manager
KC-135 ATS
Go to Top of Page

TStewartFan
Junior Member

190 Posts

Posted - 02 February 2005 :  13:57:35  Show Profile  Visit TStewartFan's Homepage
You could create a style for it which would involve including a style sheet or you could simply place this in front of the asteric: "<font color=""red"">*</font>

If You Have to Ask, You Wouldn't Understand.
Go to Top of Page

Billbo
Starting Member

USA
9 Posts

Posted - 05 April 2005 :  12:39:36  Show Profile  Send Billbo a Yahoo! Message
Geez! It's been awhile but I've finally gotten back to this project. Been scratching my head looking at POP_PROFILE trying to figure out where to put those darned highlight astericks. Finally figured out I've been looking at the wrong module the whole time. The changes need to be made to the INC_PROFILE module. Simply added your <font color=""red"">*</font> code in front of each of the field labels, as you said, and presto, it worked! Thanks again for the help.

Billbo

Bill Bowen
IS Manager
KC-135 ATS
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 19 May 2005 :  18:34:08  Show Profile  Visit Doughnut's Homepage
Hello,

I've made some of the fields in my own forum mandatory on registration which is good but there's just one problem, people can go back and remove the data from the fields after registration....

Does anyone know how to stop users from doing this, it's OK to edit/change but I don't want the required fields to be left blank afterwards?

Thanks..
Go to Top of Page

dgwyther
Starting Member

34 Posts

Posted - 13 August 2005 :  13:19:18  Show Profile  Visit dgwyther's Homepage
An answer to the above would be greatly appreciated as it's pointless applying the above steps if they can simply over-write/delete them later.

Dave G
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 August 2005 :  14:55:03  Show Profile  Send ruirib a Yahoo! Message
To enforce requirement at registration time, you change register.asp. To enforce requirement when updating the profile, you need to add similar changes to pop_profile.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
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.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07