JavaScript and PHP Tutorials

PHP to JavaScript
Information on passing variables and arrays from PHP to JavaScript. Covers JavaScript Object Notation, PHP's json_encode, JavaScript's JSON.parse, and more.
JavaScript to PHP
How to use Ajax to pass data from JavaScript to PHP using XMLHttpRequest. Demonstrates GET and POST requests, and JSON with Ajax.
JavaScript Arrays
Array methods; how to add and remove elements; how to search, sort, and traverse arrays; multi-dimensional arrays, and more.
JavaScript and Forms
How to interact with forms and form elements using JavaScript. Demonstrates with radio buttons, checkboxes, select boxes, and more.
PHP Array Functions
Information on PHP arrays and array functions. How to add and remove elements, how to search and traverse arrays, and more.
Handling Strings in PHP
Information on string functions in PHP. How to search, compare, cleanup, format and display strings, and more.
Variable Type and Type Conversion in PHP
Find out about automatic type conversion in PHP, and how to check or change the type of a variable or value.
JavaScript and Iframes
Using JavaScript to interact with iframes. Examples: cross-document references, setting iframe height, loading new documents, iframe onload, dynamically generating an iframe, and more.
JavaScript Object Literals
Object literal definition, syntax, and examples. How to access, modify, and add object literal properties.
Initializing JavaScript - Old and Modern Methods
Various means of setting up onload or DOM ready function calls, from old-school to the DOM event model.
Troubleshooting JavaScript Problems and Errors
What to do when a script doesn't work. Solving common problems; locating and deciphering error messages.