After ... a few queries about how to store ... ... and ASP, and then use them as ... I thought, well,why not write in a separate article, instead of ... ASP fil
After receiving a few queries about how to store passwords using
ACCESS and ASP, and then use them as "logins", I thought, well,
why not write in a separate article, instead of attaching
multiple ASP files that are full of confusing comments and
variables only to be decipherable by my brain?
I'm assuming you've installed, and are running PWS (Personal Web
Server) on your machine, if you are not already working on a
server that supports ASP.
First of all, create a database, for instance, customers.Define a
table with all the fields you require (include email and
password).
After the database has been created, you need to create a DNS in
order to access this database through your ASP pages.
If you have never created it, this is how you do it:
Go to the Control Panel (My Computer -> Control Panel), and click
on the icon that should be saying "ODBC Data Sources (32bit)". In
the resulting window, select the "System DSN" tab. Then click on
the "Add..." button. From the given list of Database drivers,
select "Microsoft Access Driver (*.mdb)" and click the "Finish"
button. You reach a place where you have to enter the "Data
Source Name". Enter it, anything, for instance, "customers". Then
click the "Select..." button. This lets you select the Access
database you created. Press Ok, press Ok, and press Ok. Your DSN
is created.
In the first part, I'll write about storing the passwords.
Before this, let's make an include file to create and initialize
the session variables that we are going to need (we can use
cookies, but some clever folks disable cookies on their
browsers).
File name: sessions.inc
<%
if session("email")="" then
session("email")="notlogged"
session("pass")=""
end if
%>
This file you can include in every page as
so that you can use them whenever you need them.
Now accepting login and password.
For this you require a normal HTML form. You can have "n" number
of fields in a form, but here, our primary concern is, getting
the email as login, and the accompanying password.
Here's the form:Please enter your details:
Targeting "Right" Visitors
... you don't know where you are going, then it doesn't ... road you take, does it?"-- Cheshire Cat in Alice in the ...Emailing Form Input Using ASP
... uses online forms these days, whether to get user feedback or to get orders. They present your visitors with a means to convey their message to you.Most of the ... prefer using CGI scShowing and Hiding HTML elements using Layers
A long time back I visited a site that had a very fancy, animated ... bar. Now, as a ... web ... I'm not in favor of ... fancy ... bars, but it was very fasc