4 Replies - 1606 Views - Last Post: 22 February 2010 - 02:34 AM Rate Topic: -----

#1 aru1  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 5
  • Joined: 21-September 09

Login

Posted 21 February 2010 - 01:31 PM

hi Iwant to create a website Like matrimonial There is A login Form. when a user Login How we check is the user is a registered client or An unregistered Client

please help me to write the program

i used this code

<?php
$user=$_REQUEST['user'];
$pass=$_REQUEST['pass'];
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("matrimonial", $con);
$result = mysql_query("SELECT * FROM register WHERE UserName='$user' AND Password='$pass'");

?>


What is Next
Please Help me

This post has been edited by JackOfAllTrades: 21 February 2010 - 01:35 PM
Reason for edit:: Added code tags. Please! [code]...put your code in here,,,[/code]


Is This A Good Question/Topic? 0
  • +

Replies To: Login

#2 facebookuser  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 18-November 09

Re: Login

Posted 21 February 2010 - 01:38 PM

google php login tutorial phpeasysteps has a good guide tells you how to do it step by step.
Was This Post Helpful? 0
  • +
  • -

#3 KingCuddles  Icon User is offline

  • D.I.C Regular

Reputation: 176
  • View blog
  • Posts: 496
  • Joined: 20-December 08

Re: Login

Posted 22 February 2010 - 01:12 AM

Normally I would simply post the answer, however this very much has the "last minute homework" feel about it.

In case you didn't know here at DIC, we like to see users do some work before we help them, this tends to keep people that just want help with assignments and homework from posting.

Also a simple Google Search will provide all the answers you need.

I personally love working on PHP Login Systems, and seeing different ways they can be done, so feel free to post your code once you have found a decent tutorial and we can help you improve it, and help you ensure that it is SQL injection safe.
Was This Post Helpful? 0
  • +
  • -

#4 Auzzie  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 43
  • View blog
  • Posts: 573
  • Joined: 20-January 09

Re: Login

Posted 22 February 2010 - 02:30 AM

or you could take a look at the login tutorials we have here on DIC
Was This Post Helpful? 0
  • +
  • -

#5 KingCuddles  Icon User is offline

  • D.I.C Regular

Reputation: 176
  • View blog
  • Posts: 496
  • Joined: 20-December 08

Re: Login

Posted 22 February 2010 - 02:34 AM

View PostAuzzie, on 22 February 2010 - 01:30 AM, said:

or you could take a look at the login tutorials we have here on DIC


Good point Auzzie I completely forgot about them..

Basic Login Script With PHP

Professional Level Login Design Pt. 1

Professional Level Login Design Pt. 2

Once again, feel free to get back to us with any errors.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1