Author |
Topic |
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:03:57
|
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 |
|
|
ParaDoX
New Member
United Kingdom
84 Posts |
Posted - 04 July 2002 : 13:13:57
|
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 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:16:55
|
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 |
|
|
ParaDoX
New Member
United Kingdom
84 Posts |
Posted - 04 July 2002 : 13:21:36
|
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 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:25:31
|
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 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:27:58
|
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 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:33:07
|
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 |
|
|
ParaDoX
New Member
United Kingdom
84 Posts |
Posted - 04 July 2002 : 13:35:24
|
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 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:39:04
|
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 |
|
|
ParaDoX
New Member
United Kingdom
84 Posts |
Posted - 04 July 2002 : 13:43:32
|
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 |
|
|
ParaDoX
New Member
United Kingdom
84 Posts |
Posted - 04 July 2002 : 13:46:04
|
I've also given you a special title for your profile for your help!
Jamez |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:47:51
|
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 |
|
|
ParaDoX
New Member
United Kingdom
84 Posts |
Posted - 04 July 2002 : 13:48:56
|
Not a problem... it's gone now.
Speak soon and thanx
Jamez |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 04 July 2002 : 13:49:22
|
quote:
I've also given you a special title for your profile for your help!
Jamez
lol - thanks
Nikkol |
|
|
Topic |
|