Tag Archives: encode

Persistent local storage with HTML5 Web Storage

HTML5 supports local storage with key-value pairs. The specification for local storage in HTML5 is called “Web Storage“. Storage is demonstrated in the example below by storing and retrieving an array of actors.

Posted in JavaScript | Also tagged , , , , , , , , , , | Leave a comment

Serializing and deserializing JSON with PHP

JSON (JavaScript Object Notation) is a standard for interchanging data. You might want to use for serializing and deserializing form input. This example uses the built-in functions of PHP5 for serializing and deserializing a multidimensional array.

Posted in PHP | Also tagged , , , , , , , , , , | Leave a comment