Giter VIP home page Giter VIP logo

registration-php's Introduction

Registration-PHP

This is a Registration System with PHP,JS,Mysql,for demonstrating how to use PDO to handle form data and using ajax to send data to server.

I assume that your machine meets the following requirements:
 1. PHP5.3 or above
 2. Mysql(or other database)
 3. Apache2  

How to use

  • Create a table
    We should create a table for storing the registration data,the following command is an example.
  CREATE TABLE IF NOT EXISTS `account` (
    `id` varchar(50) DEFAULT NULL,
    `passwd` varchar(32) DEFAULT NULL,
    `tw` varchar(32) DEFAULT NULL,
    `gplus` varchar(32) DEFAULT NULL,
    `fb` varchar(32) DEFAULT NULL,
    `firstname` varchar(15) DEFAULT NULL,
    `lastname` varchar(15) DEFAULT NULL,
    `phone` varchar(15) DEFAULT NULL,
    `address` varchar(100) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf-8;
  • Configure the dbinfo.php file(srcipt/dbinfo.php)
   
   //The configuration info for PDO.
    $user   = 'your-database-username';
    $passwd = 'your-database-password';
   //change the following line if necessary
    $dsn    = 'mysql:host=localhost;dbname=registration;';
  • Make a try
    Go to your browser and type localhost/Registration-PHP and you will see a registration form. Notes:
    1. You should put the Registration-PHP to your web document root folder

    2. Change the permisson of the file if meet 500 error.

Licences

Licensed under the Apache License, Version 2.0 (the "License")

registration-php's People

Contributors

timlentse avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.