Adobe 38040334 - Dreamweaver CS3 User Manual page 651

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

After clicking outside the Link box, the
(View > Live Data), you can see that the link is applied to the same text in every table row. If Live Data view is already
enabled, click the Refresh icon to apply the links to each row.
6
Select the Delete link on the results page.
If Live Data view is enabled, select the link in the first row.
(ColdFusion, PHP) In the Link box in the Property inspector, add the following string at the end of the URL:
7
?recordID=#recordsetName.fieldName#
The question mark tells the server that what follows is one or more URL parameters. The word recordID is the name
of the URL parameter (you can make up any name you like). Note the name of the URL parameter because you'll use
it in the delete page later.
The expression after the equal sign is the value of the parameter. In this case, the value is generated by a ColdFusion
expression that returns a record ID from the recordset. A different ID is generated for each row in the dynamic table.
In the ColdFusion expression, replace
with the name of the field in your recordset that uniquely identifies each record. In most cases, the field will consist
of a record ID number. In the following example, the field consists of unique location codes:
confirmDelete.cfm?recordID=#rsLocations.CODE#
When the page runs, the values of the recordset's CODE field are inserted in the corresponding rows in the dynamic
table. For example, if the Canberra, Australia, rental location has the code CBR, the following URL is used in the
Canberra row in the dynamic table:
confirmDelete.cfm?recordID=CBR
(PHP) In the Link field in the Property inspector, add the following string at the end of the URL:
8
?recordID=<?php echo $row_recordsetName['fieldName']; ?>
The question mark tells the server that what follows is one or more URL parameters. The word recordID is the name
of the URL parameter (you can make up any name you like). Note the name of the URL parameter because you'll use
it in the delete page later.
string appears linked in the table. If you enable Live Data view
Delete
with the name of your recordset, and replace
recordsetName
September 4, 2007
DREAMWEAVER CS3
644
User Guide
fieldName

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents