Creating the links to the detail page (PHP)

Creating the links to the detail page (PHP)

After creating the dynamic table (see Creating the master page (PHP)), you must create links that open the detail page. This section describes how to create the links. The next section describes how to modify the link so that it also passes the ID of the record the user selects. The detail page will use this ID to find the requested record in the database and display it.

To create links to the detail page:

  1. In the dynamic table, select the dynamic content placeholder for the text you want to be linked.

    In the following example, the {rsLocations.LOCATION_NAME} placeholder is selected. The links will be applied to the location names in the column.

    This is a picture of the feature being described.

  2. In the Property inspector, click the folder icon beside the Link field.
  3. Browse and select the detail page.

    The detail page appears in the Link field.

    In the dynamic table, the placeholder for the dynamic content appears linked. If you run the page on a server, you can see that the link is applied to the text in every table row.

The next step in creating master/detail pages is to create a URL parameter to pass the ID of the record the user selected. See Creating a URL parameter for the links (PHP).

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly