Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

create member login function

Posted on 2009-05-12
3
Medium Priority
?
363 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 800 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 800 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 400 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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 …

916 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