Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Using Check boxes to compile a field input
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:03:57  Show Profile
what do you mean the value staying when all the boxes are empty?

EDIT - okay I registered and you mean that it doesn't keep the values, yes? Give me a link to a text version of your inc_profile

Nikkol

Edited by - Nikkol on 04 July 2002 13:06:35

Edited by - Nikkol on 04 July 2002 13:08:23
Go to Top of Page

ParaDoX
New Member

United Kingdom
84 Posts

Posted - 04 July 2002 :  13:13:57  Show Profile  Visit ParaDoX's Homepage  Send ParaDoX an AOL message  Send ParaDoX a Yahoo! Message
Yeah, if someone changes anything on their profile they have to re-tick the relevant boxes.

If they don't can we just use the old value?

Here is a link to the text file:

http://www.klio.co.uk/other/inc_profile.txt

Jamez
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:16:55  Show Profile
It might also be the way the values are strung together. You could try adding a space after the first comma in this line:

strChkState = ", " & rs("M_STATE") & ","

and also for each of the checkboxes in this part:

<% if InStr(strChkState,", Friday Night,")

Nikkol
Go to Top of Page

ParaDoX
New Member

United Kingdom
84 Posts

Posted - 04 July 2002 :  13:21:36  Show Profile  Visit ParaDoX's Homepage  Send ParaDoX an AOL message  Send ParaDoX a Yahoo! Message
OK, I'll try that now- but I've just tried to update a profile and although it saves the information, it is stalling part way through the page loading.

I'll see if the space helps

EDIT, I think I see why it wasn't skipping, I removed the line strChkState = "," & rs("M_STATE") & "," as it was appearing at the top of the column. I'll put it back in, but the same still happens. Here is a link to show you:

http://www16.brinkster.com/njoifm/register.asp?mode=Register
Jamez

Edited by - ParaDoX on 04 July 2002 13:25:20
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:25:31  Show Profile
Also, for what you're doing checking for the commas isn't all that necessary.
You could also just make this line:

strChkState = ", " & rs("M_STATE") & ","

look like this

strChkState = rs("M_STATE")

and in each checkbox thing make it look like this:

<% if InStr(strChkState,"Friday Night")



Nikkol
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:27:58  Show Profile
You don't want to remove that line you must put it BEFORE the %>, like so:


if strState = "1" then
strChkState = ", " & rs("M_STATE") & ","
%>



Nikkol

Edited by - Nikkol on 04 July 2002 13:28:37
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:33:07  Show Profile
I see you are getting closer! Make sure to make the comma modifications to all
the other choices (all the Saturday's, Sunday's, and Not Frequently) and you'll have it!

Nikkol

Edited by - Nikkol on 04 July 2002 13:33:36
Go to Top of Page

ParaDoX
New Member

United Kingdom
84 Posts

Posted - 04 July 2002 :  13:35:24  Show Profile  Visit ParaDoX's Homepage  Send ParaDoX an AOL message  Send ParaDoX a Yahoo! Message
Right, I put that code above the <% and it has dissappeared from the heading, but it is still not saving the times if nothing is entered.

I'll leave the code as it is, even though I might not need it all, I'll refine it once everything is working.

Do you think adding that space will work?

Jamez
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:39:04  Show Profile
It's working for Friday night. Please read my previous posts carefully, especially the last one.
You could also post a link to your current inc_profile in text format.

Nikkol
Go to Top of Page

ParaDoX
New Member

United Kingdom
84 Posts

Posted - 04 July 2002 :  13:43:32  Show Profile  Visit ParaDoX's Homepage  Send ParaDoX an AOL message  Send ParaDoX a Yahoo! Message
I don't think there is any need for that..... it's working completely!

I ticked some boxes and it displayed fine, I went to edit the profile again and they were still ticked!!! How cool is that! I don't know how you did that, but it's great!

Here is the link anyway http://www.klio.co.uk/other/inc_profile.txt

You've been a star Nikkol, thank you very much.

Jamez
Go to Top of Page

ParaDoX
New Member

United Kingdom
84 Posts

Posted - 04 July 2002 :  13:46:04  Show Profile  Visit ParaDoX's Homepage  Send ParaDoX an AOL message  Send ParaDoX a Yahoo! Message
I've also given you a special title for your profile for your help!

Jamez
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:47:51  Show Profile
quote:

You've been a star Nikkol, thank you very much.


You are very welcome

Do me a favor, and delete my account on your site ... thanks

Nikkol
Go to Top of Page

ParaDoX
New Member

United Kingdom
84 Posts

Posted - 04 July 2002 :  13:48:56  Show Profile  Visit ParaDoX's Homepage  Send ParaDoX an AOL message  Send ParaDoX a Yahoo! Message
Not a problem... it's gone now.

Speak soon and thanx


Jamez
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 July 2002 :  13:49:22  Show Profile
quote:

I've also given you a special title for your profile for your help!

Jamez



lol - thanks

Nikkol
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07