Solved

create member login function

Posted on 2009-05-12
3
354 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now