Solved

create member login function

Posted on 2009-05-12
3
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective 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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

636 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