• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Using PHP with JavaScript > Controlling Multiple PHP Pages with Jav...

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 scheme from The Designer’s Guide to Color Combinations by Leslie Cabarga (North Light Books, 1999), the first step is to create a palette using the following colors. (All values are in hexadecimal.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint