Author |
Topic  |
|
Billbo
Starting Member
USA
9 Posts |
Posted - 02 February 2005 : 08:56:24
|
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
|
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. |
 |
|
Billbo
Starting Member
USA
9 Posts |
Posted - 02 February 2005 : 11:32:51
|
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 |
 |
|
TStewartFan
Junior Member
 
190 Posts |
Posted - 02 February 2005 : 12:10:45
|
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. |
 |
|
Billbo
Starting Member
USA
9 Posts |
Posted - 02 February 2005 : 13:51:36
|
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 |
 |
|
TStewartFan
Junior Member
 
190 Posts |
Posted - 02 February 2005 : 13:57:35
|
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. |
 |
|
Billbo
Starting Member
USA
9 Posts |
Posted - 05 April 2005 : 12:39:36
|
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 |
 |
|
Doughnut
Starting Member
United Kingdom
40 Posts |
Posted - 19 May 2005 : 18:34:08
|
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.. |
 |
|
dgwyther
Starting Member
34 Posts |
Posted - 13 August 2005 : 13:19:18
|
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 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 August 2005 : 14:55:03
|
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 |
 |
|
|
Topic  |
|