home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / Coldfusion / coldfusion-60-win-en.exe / forward.cfm < prev    next >
Encoding:
Text File  |  2002-04-09  |  2.0 KB  |  71 lines

  1.  <i>Category</i> set to All Categories for 
  2.         multiple pages
  3. </ul>
  4. </p>
  5.  
  6. <p>
  7. <form action="results.cfm" method="post">
  8. Item Name:<input type="text" name="ItemName">
  9. </p>
  10. <p>
  11. Category: <select name="CategoryID" size="1">
  12.     <option value="ALL" SELECTED>All Categories</option>
  13.     <cfoutput query="Categories">
  14.         <option value="#CategoryID#">#CategoryName#</option>
  15.     </cfoutput>
  16. </select>
  17. </p>
  18. <p>
  19. <input type="submit" value="  Submit Search  "> 
  20. <input type="reset" value="Clear Entries">
  21. </form>
  22. </p>
  23.  
  24. </cfmodule><!--- 
  25. **
  26. * CFMX Example Applications
  27. *
  28. * Copyright (c) 2002 Macromedia.  All Rights Reserved.
  29. *
  30. * YOUR RIGHTS WITH RESPECT TO THIS SOFTWARE IS GOVERNED BY THE
  31. * TERMS AND CONDITIONS SET FORTH IN THE CORRESPONDING EULA.
  32. *
  33. **
  34.  --->
  35.  
  36. <cfmodule template="../tags/layout.cfm" pageName="Data Drill-Down Example">
  37.  
  38. <!--- 
  39.     If CategoryID or ItemID is passed via the query
  40.     string, we need to copy it to the form scope. This
  41.     allows our next N/preHthe fostring, cking r. YOUR RIGHTS WITH RESPibutes.dr>C
  42. <!--- CFM*
  43. * CFMml,cfset@Tags94ur own tags to the CFML language/cope. This
  44.     allows our next N/preHthe fostring, cking r. YOUR RIGHTS WITH RESPibutes.dr>C
  45. <!--- CFM*
  46. * CFMml,cfset@Tags94ur own tags to the CFML language/cope. This
  47.     allows our next N/preHthe fostring, cking r. YOUR RIGHTS WITH RESPibutes.dr>C
  48. <!--- CFM*
  49. fro7suse oTHIS SOFTWARE IS GOVERNED BY THE
  50. * TERMS AND CONDITIONS SET FORTH IN THE CORRESPONDING EULA.
  51. *
  52. **
  53.  --->
  54.  
  55. <THE
  56. WITH R>ORRESPONDING SQLon is s
  57. *ucDITI>
  58.  
  59. <p>ootoutp<tabtype=>
  60. </cfoutpuwalectfsetmple Appows ious to th(cfmodule )tabap>
  61. In tlay itpe="varSQLos sditemNamform.dd
  62.     </cfoutpSQL"C,Celaearches,put --waleame:<tputNoryName#pe=, a selbutes.isthe o TO TH
  63. </cfofoutp
  64. <inputtemID#'
  65. y customRE IS GOV
  66.     ramRE teSPECT TO THibuury itpe="varLast NameyTIONS -- chRESPibutes.dr>C
  67. <!
  68. </coutp<t -rnVal = (attributes.tempF!--- CFM*
  69. fre. If it becomes false, we knoFTH IN THE CO went wrong --->
  70.     <cfsom    tblCategories, tblItems
  71. where    tblCategories.CategoryID = tblIte