Book Image

jQuery 2.0 Development Cookbook

By : Leon Revill
Book Image

jQuery 2.0 Development Cookbook

By: Leon Revill

Overview of this book

Table of Contents (17 chapters)
jQuery 2.0 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building a complete registration and login system


This recipe shows you how to create a simple register and login system from scratch using jQuery Mobile and PHP with a MySQL database. This recipe will form the base for a complete web application in the next recipe of this chapter.

Getting ready

You should already have a PHP and MySQL server available that will be utilized to complete this recipe. Within the web root of your web server, create index2.html and script2.js, which will hold the main functionality of the application.

How to do it…

To create a complete registration and login system, ensure you follow each of the following instructions carefully:

  1. Add the following HTML code to index2.html to create a simple jQuery Mobile website and home page:

    <!DOCTYPE html>
    <html>
    <head>
        <title>Chapter 10 :: Register & Login</title>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="stylesheet" href="includes/jquery...