Google Nemesis Review

grabthebasics.com
home faq wannahelp feedback contact

- querystring read hebrew
- script for creating login form in asp
- logout asp script
- asp basicsnot equals to
- password log in script
- loginzip asp script
- asp log in scripts
- registration and login script asp
- authenticating user asp net
- asp user log in scripts
- aspscript log
- logparser create mdb
- aspscript login script
- clear querystring variable
- login form+access
- logout scripts asp
- read hebrew querystring
- user log in script for restricted page
- username exists asp
- authenticateasp

Asp To Grab Username Variable


ASP Scripts

Creating a Simple Login Process

access.mdb

This is the database where the username and passwords are kept. It should be stored in a directory, where it can't be accessed directly by a user, but only accessed by scripts which are stored on the server.

If you want to set up the database yourself:
I have called the database access.mdb If you change this name, then ensure that you also change the references to it in addinguserproc.asp and loginproc.asp

I have called the table users. If you change this name, then ensure that you also change the references to it in addinguserproc.asp and loginproc.asp

The table has 3 fields:
userID which is an autonumber
Username which is a text field
Password which is also a text field
EmailAddress which is also a text field

I have kept it simple for these purposes, but in a real life situation you may want to make it slightly more complicated.

addinguser.asp

This is simply a form for a new user to add their information. More fields can be added if required by just adding more lines. For example:

<%Response.Write("Address <input type = ""Text"" name =""Address"">")%>

addinguserproc.asp

This script checks that the user has entered a password and username and email address. It then adds these values to the database as a new user and logs in that user in a similar way to loginproc.asp . It then redirects that user to success.asp to tell them that they are logged in

authenticate.asp

This should be included at the top of each file that you want to password protect. The asp file should have

<%Response.Write("<%@ Language=VBScript %>" & vbcrlf)Response.Write("
" & vbcrlf)Response.Write("<%Option explicit %>")%>

at the top and this should be included immediately after these two lines by putting:

<% Response.Write("<!-- #INCLUDE FILE = "authenticate.asp" -->") %>

delete.asp

This script is activated from viewusers.asp in order to delete users from the database.emailcheck.asp

This is a simple script to check that the person adding their email address is entering a valid email address. It checks that there is only one @ sign and also there there is a dot there

failure.asp

This tells the user, that they are not logged in if it is true or their username if they are logged in.

login.asp

This is a simple form for a user to log in. It requires a Username and password, however other fields can be added as with addinguser.asp .

loginproc.asp

This checks that a Username and Password were entered. It then checks them against the database to make sure that the Username exists and that the password entered is valid.If they are, then it writes a session variable of their username and redirects them to the success page

logout.asp

This page simply sets the session variable equal to "" . It then redirects the user to failure.asp to tell them that they are not logged in.

success.asp

This could say anything, but to show that the script is working, I have written the session variable produced by loginproc.asp to show the user name.

viewusers.asp

This shows all valid users in a table. For security, don't put this in a place which can be easily found by visitors. Alternatively, password protect this page by changing authenticate.asp to only allow access if there is a particular username that has been logged in. You are also able to delete users from this page, but once deleted, they are deleted permanently.

Any more questions please email scripts@grabthebasics.com

INTERNATIONAL INTERNET REGISTRATION ORGANIZATION ANNOUNCES THE NikName™ REGISTRATION LAUNCH PLAN AND DATES

KITCHENER, ONTARIO, CANADA– Nov. 23, 2001 – International Internet Username Registration Organization (I.I.U.R.O.) is pleased to announce the launch of its NikName™ registration...


InstantASP Ltd is Proud to Announce the Release of InstantForum.NET v3.4.

(PRWEB) March 9, 2004 -- The latest v3.4 release features a new integrated spell checker for all posts, private messages and emails sent from the forum. File attachments are supported for both forum...


Top Ten stupid Skype usernames exposed by The Skype Owl

England, May 2005– From the obscene to the unintelligible, Skype users across the world are showing their creativity (or mental imbalance) in their choice of Skype username. The Skype Owl, in...


BrightLinQ Simplifies Variable Data Printing for Unix and Linux

Los Angeles, California and Montreal, Quebec (PRWEB) October 5, 2005 -- Codehost, Inc. the leading provider of http://www.codehost.com [Unix and Linux printing] solutions, together with Objectif...


Experience Italy on Olive Garden's New Web Site

ORLANDO, Fla. (PRWEB) April 13, 2006 -- Olive Garden has added some innovative new“bytes” to the menu, its online menu that is, with a host of culinary tools for the at-home chef,...


Variable Annuity Living Benefits Explained

Syracuse, NY (PRWEB) May 26, 2006 -- Annuity IQ releases an easy to understand guide to understanding variable annuity living benefits. This free resource is available at http://www.annuityiq.com...


Variable Annuity Research Second Edition Now Released

Syracuse, NY (PRWEB) June 14, 2006 -- Annuity IQ announces the 2nd edition of“The Annuity Report”. Annuity IQ offers brokers and investors the opportunity to review and research variable...


Variable Annuity Suggestion Tool is Now Avaiable

New York (PRWEB) June 26, 2006 -- Annuity IQ is pleased to announce the release of the Annuitizer. This is a variable annuity suggestion tool designed to suggest the best contracts for the consumer's...


home FAQ How can I help feedback Contact