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)
 Compulsary Fields In Profile
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

endomorph
Junior Member

United Kingdom
128 Posts

Posted - 21 September 2004 :  16:55:57  Show Profile
Here's a question.....

Is it possible to make any of the fields in the members profile compulsary when registering ?

It is so annoying when people don't fill them in.

I have searched around for this but can't find anything so far.

Any advice help would be much appreciated.

Need help with your Snitz ? Most Snitz & ASP custom coding undertaken. Email for info | Search Engine Optimisation

endomorph
Junior Member

United Kingdom
128 Posts

Posted - 21 September 2004 :  17:31:43  Show Profile
Cracked it !

In register.asp look for -

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


around line 266. Under this insert -


if trim(Request.Form("$$$$$$$")) = "" then
Err_Msg = Err_Msg & "<li>You must select *************</li>"
end if


and replace $$$$$$$$$ with the profile field name and ************** with the error message.

For example -


if trim(Request.Form("Country")) = "" then
Err_Msg = Err_Msg & "<li>You must select a country</li>"
end if


will ensure that the country is selected.

Dont forget to edit inc_profile.asp to mark the relevant field with the * to show it as required.

Need help with your Snitz ? Most Snitz & ASP custom coding undertaken. Email for info | Search Engine Optimisation
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07