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:
- 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="...