jQuery AJAX Tutorial Pt2

Heres Part 2 of the jQuery AJAX login tutorial. If you haven’t already, i suggest you read part 1 located here.
We are going to start writing the PHP code to process the form. This is fairly basic stuff, using $_POST to get the values from the form, then checking them against pre-assigned values, if they [...]

Filed under: Uncategorized, ajax, code, jquery, php, tutorial, , ,

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.

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

Ok then. So [...]

Filed under: ajax, jquery, php, tutorial, , , ,

Securing User Input in PHP

In nearly all of my PHP tutorials you’ll see me using the secure function to sanitise incoming user data from things like forms, and $_GETs . Its a small function, which no doubt alot of you already have, but here it is anyway.

function secure($string) {

                $string = strip_tags($string);

  [...]

Filed under: php, security, snippet, , ,