Solved

create member login function

Posted on 2009-05-12
3
356 Views
Last Modified: 2012-08-14
Hello. i am attempting to create a member login function in my website. Is this possible to do in a straight html site? or what would be the easiest way to go about this? Thank you
0
Comment
Question by:Observer11
3 Comments
 
LVL 31

Accepted Solution

by:
Frosty555 earned 200 total points
ID: 24368065
You can't do it in a straight HTML page. You need some server interaction to decide if the user is logged in or not. You can do it easily in PHP.

See this post on EE: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Databases/Q_24402328.html
0
 
LVL 14

Assisted Solution

by:amichaell
amichaell earned 200 total points
ID: 24368082
I've only done this casually, though when I did I created mine with PHP and a SQL backend.  HTML was used to create the login form.  PHP was used to handle random password creation, password resets, encrypting password, etc.
0
 
LVL 2

Assisted Solution

by:smacky81
smacky81 earned 100 total points
ID: 24371432
I generally do these in Cold Fusion, using mssql database.

Create a table called users and then create a login form.
Send the login form to auth.cfm and have auth.cfm do a query on your users table:

eg:

SELECT *
FROM users
WHERE username = '#form.username#'
AND password = '#form.password#'

Then run an if statement to redirect if or if not correct.

eg:

<cfif QUERYNAME.recordcount = 0>
<cflocation url="index.cfm">
<cfelse>
<cflocation url="success.cfm">
</cfif>
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question