MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual page 260

Table of Contents

Advertisement

240
<!--- Lock Application Variable application.number to
update the total number of turtlenecks sold. --->
<cflock scope="Application"
</cflock>
<!--- Show the form only if it has not been submitted. --->
<cfelse>
<form action="cflock.cfm" method="Post">
<p> Congratulations! You have just selected
the longest wearing, most comfortable turtleneck
in the world. Please indicate the color and size
you want to buy.</p>
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td>Select a color.</td>
<td><select type="Text" name="color">
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</form>
</cfif>
</body>
</html>
timeout="30" type="Exclusive">
<cfset application.number=application.number + 1>
<option>red
<option>white
<option>blue
<option>turquoise
<option>black
<option>forest green
</select>
</td>
<td>Select a size.</td>
<td><select type="Text" name="size">
<option>small
<option>medium
<option>large
<option>xlarge
</select>
</td>
<td></td>
<td><input type="Submit" name="submit" value="Submit">
</td>
Chapter 12 Using the Application Framework

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents