How to use CFselect without query in ColdFusion

cfselect without query

cfselect.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ColdFusion cfselect tag example: how to use cfselect without query</title>
</head>

<body>
<h2 style="color:DodgerBlue">cfselect example: Without Query</h2>
<cfif IsDefined("Form.Submit")>
 You selected: <cfoutput><b>#Form.City#</b></cfoutput>
    <br />
</cfif>

<cfform name="SelectTestForm" method="post" action="">
 <cfselect name="City">
     <option>Rome</option>
     <option>Paris</option>
     <option>Kolkata</option>
     <option>London</option>
     <option>NewYork</option>
    </cfselect>
    <cfinput type="submit" name="Submit" value="Submit">
</cfform>
</body>
</html>





More ColdFusion examples