O'Reilly logo

Dreamweaver 8: The Missing Manual by David Sawyer McFarland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Passing Information Between Pages

Every now and then, you'll want to pass a piece of information from one page to another. The master-detail page set described in the previous section uses this concept: a link on the master page not only points to the detail page, but also passes along a unique ID used to create a filtered recordset on the detail page. In other words, the master page lists a bunch of records from a database. Each record not only links to the detail page, but also passes along its unique ID. The link might be something like prodDetails.asp?prodID=7.

The information after the ? in the URL is a URL parameter, which the detail page uses to build a recordset. In this example, the detail page would find only one record—the one whose prodID is 7—and display its details on the page. The key to the success of the master-detail page set, then, is the ability to pass information to another page and then use that information to filter a recordset (see Section 21.1.3 for details on filtering database records).

Dreamweaver can pass information to other dynamic pages using either of two tools: the Go To Detail Page and Go To Related Page server behaviors.

Note

These two tools are available only for the ASP and JSP server models. For the other server models, several developers have created extensions to fill the gap. The PHP Missing Tools extension by Felix One (www.felixone.it) includes both the Go To Detail Page and Go To Related page server behaviors for PHP. In addition, Deng Jie ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required