JavaScript and PHP Tutorials

JavaScript with PHP

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 Tutorials

JavaScript and Forms
How to interact with forms and form elements using JavaScript. Demonstrates with radio buttons, checkboxes, select boxes, and more.
JavaScript Arrays
JavaScript array methods; how to add and remove elements; how to search, sort, and traverse arrays; multi-dimensional arrays, and more.
JavaScript Strings
JavaScript string methods; how to search strings, how to select substrings, how to convert strings to arrays, and more.
Data Type and Type Conversion in JavaScript
Find out about JavaScript's loose typing, automatic type conversion, the typeof operator, parseInt and parseFloat, and type conversion functions.
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.

PHP Tutorials

PHP Arrays
Information on PHP arrays and array functions. How to add and remove elements, how to search and traverse arrays, and more.
PHP Strings
Information on strings and 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.

Back to top