Controlling Multiple PHP Pages with JavaScript

One use of JavaScript is to serve as a controller for PHP pages appearing in an HTML environment. Because PHP replaces a page that it is called from, one plan of action is to use JavaScript to create a number of buttons used to launch different PHP pages within a frameset. JavaScript can reside in the menu page, and PHP is called in the body page of a two-column frameset. At the same time, both the JavaScript page and the PHP page share a common external style sheet. Seven scripts are required for this project: an external CSS file, a frameset page, the menu page using JavaScript, a placeholder page, and three PHP pages demonstrating different features of PHP.

Cascading Style Sheet

Using a color ...

Get JavaScript Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.