Creating the links to open the update page (PHP)

Creating the links to open the update page (PHP)

After creating the search/results pages (see Searching for the record to update (PHP)), you must create links on the results page to open the update page and display the selected record in an HTML form. 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 update page will use this ID to find the requested record in the database and display it.

To create links to the update page:

  1. In the results page, 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 update page.

    The update page appears in the Link field.

    On the results page, the placeholder for the dynamic content appears linked. If you upload the pages to the server and run a search, you can see that the link is applied to every record on the results page.

The next step in creating a record update page 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