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 / Current Version (Old)
 Required Fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

efourie
New Member

USA
80 Posts

Posted - 18 March 2001 :  15:18:02  Show Profile
Is there some quick tips anyone can give me to make more fields required, other than the name and lastname and password fields?



RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 March 2001 :  16:56:13  Show Profile
Basically what you do is put in a check like this:


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


having that code makes that field required. It checks to make sure something has been entered in the field, if not it gives an error and tells the user they need to go back and fix it.

Just replace Name above with the field name you want to make required.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 March 2001 :  17:15:42  Show Profile
And you will put it in the register.asp page. You can put it before this 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
It's near to the top. Starting at line 85 for me.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 March 2001 :  17:23:56  Show Profile
pop_profile.asp will need to be edited also to add the checks.
Go to Top of Page

efourie
New Member

USA
80 Posts

Posted - 19 March 2001 :  10:23:36  Show Profile
Thanks - you guys are really awesome!



Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 March 2001 :  19:33:16  Show Profile
you're welcome
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 06 April 2001 :  10:17:12  Show Profile  Visit tomasalsbro's Homepage
Richard,
when I try to follow your instructions above, I reciev this message:
========
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/forum/register.asp, line 82

Err_Msg = Err_Msg & "<li>Du måste ange ditt yrke eller sysselsättning</li>
--------------------------------------------------------------------------^
============
I have tryed your way and to modify as follow:
if Request.Form("Occupation") = "" then
.....

That gave no change to the message.
I've looked it up in
http://support.microsoft.com/support/kb/articles/Q265/3/17.ASP?LN=EN-US&SD=gn&FR=0&qry=800a0409&rnk=1&src=DHCS_MSPSS_gn_SRCH&SPR=MSALL
but I can't figure out how to avoid the problem.
Any suggestions??
Cheers / Tomas





Edited by - tomasalsbro on 06 April 2001 10:31:13
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 06 April 2001 :  12:53:35  Show Profile
Well, looking at the error, it seems you are missing a quote " at the end.

Err_Msg = Err_Msg & "<li>Du måste ange ditt yrke eller sysselsättning</li>"


Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 07 April 2001 :  03:40:49  Show Profile  Visit tomasalsbro's Homepage
quote:

pop_profile.asp will need to be edited also to add the checks.



Where do I edit the pop_profile.asp?
I can't find the right spot.
Cheers / Tomas

Edited by - tomasalsbro on 02 May 2001 17:51:45
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 02 May 2001 :  17:56:09  Show Profile  Visit tomasalsbro's Homepage
Richard Kinser - please help me!
You told me to change the pop_profile.asp as well, but I can't find where to make the changes.
Cheers / Tomas

!-Keep distance in trafic-!
www.whiplash.pp.se
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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07