php (35) javascript (31) phpjavascript (30) jquery (23) html (20) mysql (14) database (9) codeigniter (4) json (4) bar chart (2) calendar (2) column chart (2) framework (2) google maps (2) query (2) tables (2) url (2) dropdown (1)

Thursday, February 15, 2018

Simple User Registration Form Using PHP, MySQL

In this tutorial, I am illustrating a simple user registration form. register form is a common need in any kind of web-based application so here is register form using PHP, MySQL, HTML, and CSS.


    <link rel="stylesheet" href="">
            border:1px solid black;
        .btn {
            margin: 5px;



<div class="container-one">
    <form method="POST">
        <div class="col-md-5">
            First Name <input type="text" name="FirstName">
        <div class="col-md-5">
            Last Name <input type="text" name="LastName">
        <div class="col-md-2">
            Email <input type="text" name="Email">
        <div class="col-md-3">
            Password <input type="password" name="Password">
        <div class="col-md-2">
            City <input type="text" name="City">
        <div class="col-md-2">
     <input type="submit" name="Submit" value="Submit" class="btn">

$DatabaseServer = "localhost";
$DatabaseUsername = "root";
$DatabasePassword = "root";
$DatabaseName = "demo";

$Connection = mysqli_connect($DatabaseServer,
 $DatabaseUsername, $DatabasePassword, $DatabaseName);
if ($Connection === false) {
    die("ERROR: Could not connect. " . mysqli_connect_error());
if (isset($_POST['Submit'])) {
    $FirstName = $_POST['FirstName'];
    $LastName = $_POST['LastName'];
    $Email = $_POST['Email'];
    $Password = $_POST['Password'];
    $City = $_POST['City'];
    $SQL = "INSERT INTO user 
(FirstName, LastName, Email, Password, City) 
VALUES ('$FirstName', '$LastName', '$Email', '$Password', '$City')";
    $result = mysqli_query($Connection, $SQL);


  1. Welcome to the Best writer Review, Here you can get the best All Assignment Help review sites. We strongly urge you to check our entire website once and we will assure you will find this review website very useful. Our hard work will be rewarded if students like you will appreciate our effort and spread the message about this site with your class-fellows and friends.

  2. Easily, the is clearly the very best topic on this registry related issue. I participate in your conclusions and will eagerly look forward to your following updates. Just saying thanks won't you need to be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to remain informed of any training singapore

  3. Digital signatures have really improved the security level .To make the documents secure digital signature and encryption is the best way. And temperament is really not easy. Digital Signature Certificate

  4. Thanks for sharing the relevant information with us…It are good for us. Digital Signature Certificate

  5. I highly admire your post. Thanks for sharing such wonderful information, I see your post very often and share them on all social media channels.
    Private detective agency in Mumbai

  6. I am very grateful you did share your knowledge here. It is an excellent post
    sharing this sort of educational posts. Class 2 Digital Signature Certificate

  7. I really enjoyed reading your blog, you have lots of great content. Please visit here:
    Digital Signature Certificate in Delhi


More Posts