jQuery AJAX Login Series Pt1

Heyo. This is going to be the first of 4 tutorials on making a jQuery powered AJAX login system with a PHP backend. The series of tutorials will go like so.

  1. Plan, code the form (This tutorial)
  2. Code the PHP backend, make it work
  3. Code the AJAX, implement it.
  4. Tidy it up, make it look snazzy

Ok then. So we will have a forum with 2 inputs; username and password. The user will enter the details and we’ll use PHP to authenticate them. If its true, we can set a cookie or echo some text. We will then implement jQuery’s AJAX and make the whole thing seemless. Some nice little fades will be added at the end.

So, the form. Its a plain and simple HTML form. Nothing special about it.

  1. <form method="post">
  2.  
  3. <b>Username:</b><input type="text" name="username">
  4.  
  5. <b>Password:</b><input type="password" name="password">
  6.  
  7.        
  8. <input type="submit" name="login" value="Login">
  9. </form>

Thats all for now. Next lesson we will code the PHP and “make it work“.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • bodytext
  • description
  • Slashdot
  • Technorati
  • Sphinn
  • del.icio.us
  • Facebook
  • Google
Filed under: ajax, jquery, php, tutorial, , , ,

1 Response

  1. jQuery AJAX Tutorial Pt2 | Query7 - PHP jQuery Linux Says:

    [...] Heres Part 2 of the jQuery AJAX login tutorial. If you haven’t already, i suggest you read part 1 located here. [...]

    Posted on May 13th, 2008 at 4:35 am

Leave a Reply