Adding security to CodeIgniter forms with a custom library class Comments (1)
by Wez Pyke - December 16, 2009 in PHP, Text Tutorials

The class that we are going to create within CI will simply add a math question that the user will have to enter correctly to continue. This is useful to stop bots from mass submitting information to your forms.

The class we are going to write is only very short and simple, but it will give you an idea of how to create classes for your own projects.

Creating the new class

First of all we need to create the file for the class, navigate to libraries then create a file called math_question.php.

All we are going to do within this class is generate two random numbers that will be added together.
(more...)

ASCIICasts: AJAX History and Bookmarks Comments (0)
by Wez Pyke - September 12, 2009 in External

View full tutorial

In the last episode we added AJAX functionality to a paginated list of products. Instead of acting as normal HTML links, the paginated links had click events added to them via unobtrusive JavaScript so that when clicked they made an AJAX request that updated the main content of the page with a new page of products.

AJAX History and Bookmarks

(more...)