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)
 Values populated when mode=Register?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cbw
Starting Member

2 Posts

Posted - 29 December 2005 :  11:17:39  Show Profile
I am using the M_OCCUPATION field to display multivalues with a checkbox. I edited inc_profile.asp around line 397 to say:

If Instr(rs("M_OCCUPATION"),"Public Relations") AND strMode <> "Register" then response.write "checked" %> value="Public Relations">

So that none of the check boxes (this is just one of four) would be checked when a guest registers. It works fine after they sign up and change their selections, but they are all checked when mode=Register.

Given the logic in my IF statement above, how is it finding the "checked" condition?

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 December 2005 :  13:27:09  Show Profile  Send ruirib a Yahoo! Message
Hard to say without checking the rest of the code. I would advise you to explicitly add an Else statement and then Response.Write to avoid the checking of the checkboxes.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

cbw
Starting Member

2 Posts

Posted - 29 December 2005 :  14:15:54  Show Profile
I didn't change any other code. I did take your advice though, and just explicitly account for the other possibility. Works fine now, thanks.
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 30 December 2005 :  07:25:16  Show Profile  Send pdrg a Yahoo! Message
Rui rocks, doesn't he
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 December 2005 :  11:47:00  Show Profile  Send ruirib a Yahoo! Message
Glad it's working.

Paddy, don't embarrass me...


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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07