MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual page 295

Table of Contents

Advertisement

Creating a Searchable Data Source
To create a simple collection form page:
1
2
3
Note that this file simply shows how the form variables are used and does not
perform error checking.
To create a collection action page:
1
2
Open a new file in ColdFusion Studio.
Modify the file so that it appears as follows:
<html>
<head>
<title>Collection Creation Input Form</title>
</head>
<body>
<h2>Specify a collection</h2>
<form action="collectioncreateaction.cfm" method="POST">
<p>Collection name: <input type="text" name="CollectionName"
size="25"></p>
<p>What do you want to do with the collection?</p>
<input type="radio"
name="CollectionAction"
value="Create" checked>Create<br>
<input type="radio"
name="CollectionAction"
value="Repair">Repair<br>
<input type="radio"
name="CollectionAction"
value="Optimize">Optimize<br>
</p>
<input type="submit"
name="submit"
value="Submit">
</form>
</body>
</html>
Save the file as
collectioncreateform.cfm
Open a new file in ColdFusion Studio.
Modify the file so that it appears as follows:
<html>
<head>
<title>cfcollection</title>
</head>
<body>
<h2>Collection creation</h2>
<cfoutput>
<cfswitch expression=#Form.collectionaction#>
.
275

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5-DEVELOPING and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 5

Table of Contents