How to create php login register system?

Asked By 50 points N/A Posted on -
qa-featured

Hello Experts,

How to create a PHP login register system?

I would like to know more about html connected to the PHP programming system.

I want to create a webpage that allows the users to register first then log in the username and password after the validation of the registration process.

Thank you.

SHARE
Best Answer by Bob Davis Jr
Answered By 60 points N/A #182812

How to create php login register system?

qa-featured

Hi Shannon Larry,

There were a lot of PHP Codes that are found on the internet for Login Register System.

I have selected the most basic codes for you. I have attached the link below for your reference.

CodeCall Forum: Simple Register Login – Logoff System

You may also check the link below:

Tutorial: Cool Login System

Thanks and more power.

Answered By 0 points N/A #182814

How to create php login register system?

qa-featured
Hello Shannon Larry,
 
Here's a sample code. You can also watch tutorial on YouTube for additional.
<html>
<head>
<title>login page</title>
</head>
<body bgcolor="black" style="color:gray">
<form action="index.php" method=get>
<h1 align="center" style="color:gray" >Welcome to this simple application</h1>
<?php
session_start(); 
if($_SESSION["logged"])
{
         print_secure_content();
}
 
else {
         if(!$_SESSION["logging"])
          {  
        $_SESSION["logging"]=true;
         loginform();
                 }
         else if($_SESSION["logging"])
           {
                  $number_of_rows=checkpass();
                  if($number_of_rows==1)
                         {       
                          $_SESSION[user]=$_GET[userlogin];
                          $_SESSION[logged]=true;
                          print"<h1>you have logged in successfully</h1>";
                          print_secure_content();
                         }
                        else{
                                   print "wrong password or username, please try again";
                                   loginform();
                        }
                }
         }
 
Hope this helped you!
 

 

Answered By 0 points N/A #182810

How to create php login register system?

qa-featured

Hi Shannon,

There are several websites that can give you a program on how to create a PHP login register system. With these sites you can get additional knowledge in creating the program. You can get it for free. Just choose one of these sites that must easier for you to create.

https://www.webdesign.org/

https://stackoverflow.com/questions/9840391/php-login-register-system

I hope it will work.

Best Answer
Best Answer
Answered By 0 points N/A #182815

How to create php login register system?

qa-featured

Shannon, creating a very basic login system without account verification is pretty easy. Securing it is the hard part and really requires significant knowledge to do correctly. For example, the verification code for account validation and recovery should not be able to be guessed by an attacker. 

And that is just one possible, and actually quite common, exploit of most login systems that do account verification. For the reason of security alone, I generally recommend using a product someone else has created and hardened against attacks.

I regularly do security analysis of software and I've evaluated hundreds of login systems and I only know of two standalone login products that didn't raise any red flags in my mind at the time of evaluation:

JASIG CAS Central Authentication Service

Single Sign-On Server/Client

Although it looks like the JASIG phpCAS client recently had some serious issues prior to 1.3.0 (since fixed). Security is a moving target. Just when you think you've got it nailed, someone comes up with a new way to exploit trust in others.

If you are intent on writing your own login system, please don't release it to the public in any form. Of the systems I've evaluated, I usually find about 3 to 4 major security vulnerabilities in just five minutes that would allow me to effectively take over the web server the system resides on. 

If I can do that, which I would never actually do, so can anyone else. There's a LOT of bad code floating around on the Internet and login system tutorials are the worst offenders.

Related Questions