| home / programming / php / beginning / chap16 / 3 |
[next] |
|
Building a FrameworkBefore we can start writing the actual scripts we need to create a framework for them to work in. We are going to use a frameset of two frames alongside one another. The left-hand frame is a sidebar, while the right-hand frame will be where all of our scripts run. Here is index.html:
To begin with, the right-hand frame will be blank, so here is blank.html: and menu.html, our sidebar:
Our form has an action of mall.php and a text box called criteria. The target of the form is the right-hand frame, in which we want our results displayed. Here's the script that will do that job:
Fire up the index.html file we created earlier, enter shoes in the text box and click on Submit. You should see the following results:
|
| home / programming / php / beginning / chap16 / 3 |
[next] |
| ||||||||||||||||||||
Created: March 28, 2001
Revised: March 28, 2001