WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2004, 05:10 PM
tfinch tfinch is offline
WebProWorld Member
 

Join Date: Apr 2004
Location: East Peoria
Posts: 34
tfinch RepRank 0
Default access database access

Hello, I took over a site that is password protected in certain areas. I saw a database on the site with a password list on it. Depending on the word you type in, it will take you to different sections of the site. I looks simple enough but when I try to get it to work, it doesn't. Does anyone have some help links for ASP? It looks like there are only two pages for this task, plus the database, which is in Access.
What I want to do is make a database that will direct where people go depending on what they type in. For example, business will take you to business/index.htm
Any help is appreciated.
TF
Reply With Quote
  #2 (permalink)  
Old 07-25-2004, 01:01 PM
ADAM Web Design's Avatar
ADAM Web Design ADAM Web Design is offline
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

Well...in the case of logins/passwords, it really depends on what you're trying to accomplish or do.

The simple explanation (with no code) is this:

Set up Access table with login, password, and redirect URL.
Set up form for user to input login/password.
Check to see if Login/password inputted match any in the Access table.
If they do, retrieve the URL and redirect them (Response.Redirect) to the appropriate section.
Reply With Quote
  #3 (permalink)  
Old 07-26-2004, 09:56 PM
vivekar vivekar is offline
WebProWorld Member
 

Join Date: Jul 2004
Location: ---| here |---
Posts: 85
vivekar RepRank 0
Default

Since you want to direct where people go depending on what they type in, *occasionally* you might run into some trouble.

Try to implement a good 404 page ( in asp) which collects and shows the recently visited pages.
__________________
Submit URL - Website Directory Web TemplatesWeb hosting firms list
Reply With Quote
  #4 (permalink)  
Old 07-27-2004, 12:40 AM
Easywebdev's Avatar
Easywebdev Easywebdev is offline
WebProWorld Veteran
 

Join Date: Apr 2004
Location: Donegal, Ireland.
Posts: 309
Easywebdev RepRank 0
Default

A "good" 404 page.

Lets define that. A 404 is encountered when a webpage cannot be found under a particular site. We have all seen the remnants of the code red and nimda virii with hits on our error logs for some_silly_windows.dll

A "good" 404 page IMHO should be a php/shtml file that is able to record the users browser, ip and time of error and present the user with a choice of a) go to the sites homepage and try to locate what they are looking for or b) be directed to a form they can fill in detailing what they tried to find with the parameters (browser, time, page) already passed to the script and the results emailed to the webmaster.

If you are getting hits related to bots/virii then they are not going to click the links to your homepage or fill in a form detailing the problem.

Some people can't/won't be bothered to investigate 404's but oft times they can be a source of keywords a person uses to search for a site in your marketing niche.

I for one would rather know what the searcher was actually looking for when they hit my site.

A "bad" 404 just says page not found.

Thoughts?
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
  #5 (permalink)  
Old 07-27-2004, 05:16 AM
paulhiles's Avatar
paulhiles paulhiles is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Quote:
Originally Posted by Easywebdev
I for one would rather know what the searcher was actually looking for when they hit my site.

A "bad" 404 just says page not found.

Thoughts?
Excellent post, if you want to start a new thread using the bulk of your post above to kick it off - be my guest! :o)
Reply With Quote
  #6 (permalink)  
Old 07-27-2004, 09:35 PM
tfinch tfinch is offline
WebProWorld Member
 

Join Date: Apr 2004
Location: East Peoria
Posts: 34
tfinch RepRank 0
Default directing

Thanks for the tips. What I was looking for was a type of code to use to direct people to certain sections of the site that is already complete. For example: someone types "work" and it takes them to the work section of the site, which is in a folder on the site. I am not familiar with VB or ASP so I was hoping to get some help here. Any other ideas? Thanks again.
Reply With Quote
  #7 (permalink)  
Old 07-27-2004, 10:28 PM
Easywebdev's Avatar
Easywebdev Easywebdev is offline
WebProWorld Veteran
 

Join Date: Apr 2004
Location: Donegal, Ireland.
Posts: 309
Easywebdev RepRank 0
Default

My apologies to you tfinch, I dragged your post off topic by jumping on the "good 404" bit.

To reply to you original post, in order for the site you described to work there has to be a script to parse the user input (username/password) which is then checked against a database of valid username/password combinations and if a match is found then the script redirects the user to certain parts of the site.

I would assume that the first page is a html page with a form and the input is passed to the second (asp) page to validate the user and redirect them.

Without seeing the code that is used to parse the input and do the redirection its nigh on impossible to provide any help.

If you could post the code and what you are trying to add/achieve then I may be able to give you a more informed answer.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: access, database



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0