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 |
|
||||
|
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. |
|
|
|
||||
|
Try using this:-
If this does not work, then post back along with a schema for the table including field types. Cheers
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Actually.... it may be because you don't have a record...
Try this too:-
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
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... |
|
|||
|
'Reponse'
from that I'd say you have Reponse.Redirect on line 19 instead of Response.Redirect |
|
||||
|
yes.... lol I do that all the time.... easy done.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
doh!
How stupid of me...I feel really embarrassed now. Thanks guys! I'll read my script more carefully next time! |
|
|||
|
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.
|
|
||||
|
well.... post back if you get stuck!
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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.
|
|
|||
|
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.
|
|
||||
|
<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.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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...
|
|
|||
|
Did you know that 84% of statistics are made-up?
|
|
|||
|
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?
|
![]() |
| Tags |
| help, script |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with this script | korvix | JavaScript Forum | 1 | May 28th, 2008 23:00 |
| Just following the script... | chrisomatix | Introduce Yourself | 3 | Feb 27th, 2008 07:03 |
| i need help with a FMS script | taietel | Flash & Multimedia Forum | 1 | Apr 6th, 2007 14:56 |
| Asp script | tolis | Classic ASP | 0 | Feb 3rd, 2007 13:28 |
| Changes to CSS script | Accurax | Web Page Design | 6 | Dec 17th, 2006 16:36 |