This is a discussion on "Help with a script please" within the Classic ASP section. This forum, and the thread "Help with a script please are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Help with a script please
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Help with a script please
Ok, I've been playing around with asp trying to create a user management site, just mucking around. I've been able to create the login and sign up pages, and everything works fine. Now I'm trying to create an admin section. I've included a field in the database to show whether a user is an admin or not and I have created the following code. Members must be logged in to view the page, and admins are redirected to another page of their own, admin.asp
Error Type: (0x80020009) Exception occurred. /membersonly.asp, line 16 but what is wrong with line 16?? What is the exception? any help would be greatly appreciated. |
|
|
|
#2
|
||||
|
||||
|
Try using this:-
If this does not work, then post back along with a schema for the table including field types. Cheers
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
||||
|
||||
|
Actually.... it may be because you don't have a record...
Try this too:-
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
||||
|
||||
|
of course...
I've just added at the top of the script:
Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: 'Reponse' /secure/membersonly.asp, line 19 line 19 is Response.Redirect("admin.asp") I don't understand it. Sorry if these are really obvious mistakes, I'm learning... |
|
#5
|
|||
|
|||
|
'Reponse'
from that I'd say you have Reponse.Redirect on line 19 instead of Response.Redirect |
|
#6
|
||||
|
||||
|
yes.... lol I do that all the time.... easy done.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#7
|
||||
|
||||
|
doh!
How stupid of me...I feel really embarrassed now. Thanks guys! I'll read my script more carefully next time! |
|
#8
|
||||
|
||||
|
That fixed it. Now I can get on with the admin's page. Thanks guys!
|
|
#9
|
|||
|
|||
|
don't feel stupid Tim356 ... im still having problems with my log-in script, hahaha... I can get it to connect but not to check the passwords. Well, I will keep at it till I get it.
|
|
#10
|
||||
|
||||
|
Well, keep at it.
Now I'm having problems with adding stuff to my database... I'm just testing it by creating a simple forum type thing, but only for members, where they enter comments and then it displays all comments posted. I'm trying to set it up so that it automatically adds to the database which user is posting, but do you think I can?? It's ****ting me, cause I know it's simple, but I'm doing heaps of things wrong... very frustrating, but I'll keep going... |
|
#11
|
||||
|
||||
|
well.... post back if you get stuck!
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
||||
|
||||
|
Thanks Rob, your help (everyone's help for that matter) is appreciated!
|
|
#13
|
|||
|
|||
|
I guess I'd say try a cookie. You could always look at any of the free tag-board scripts out there and see how they do it to get ideas too.
|
|
#14
|
|||
|
|||
|
only problem with cookies is that most people's browsers do not accept them. Actually, JavaScript AND VBScript can be disabled too.. Thats so sad.
|
|
#15
|
||||
|
||||
|
I'm still working out cookies...
|
|
#16
|
||||
|
||||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">only problem with cookies is that most people's browsers do not accept them<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Most browsers? Really Court Jester... you ought to check you facts. Nearly all browsers accept them, and nearly everyone has them enabled.
I've told you a thousand times not to exaggerate.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#17
|
|||
|
|||
|
Really now? Hrmm.. Not what I have been reading up lately. Actually Most browsers don't accept them.. The default setting in Internet Explorer is to not accept cookies from most websites... and I know like 50% of the people using the net don't even know how to change thier settings... So At least 50% of them won't accept cookies... probably more, which makes it most people :wink:.
Now if you accept the websites privicy policy, or you accept their security settings, then yes you will be able to use cookies on that website witht the default settings of Internet explorer...
|
|
#18
|
|||
|
|||
|
Did you know that 84% of statistics are made-up?
|
|
#19
|
|||
|
|||
|
Sure they are D3mon.. I don't know about you, I am sure you make up yours, but mine aren't made up... they are cold hard facts.. Did you know that when people try to talk against statistics without any content they look unintellegint?
|
|
#20
|
|||
|
|||
|
:wink: Why is it when people spell 'unintellegint' they come of looking unintelligent? :wink:
|
![]() |
| Tags |
| help, script |