Set Credit Card Years Forever

Set Credit Card Years Forever

<cfparam name="fromYear" default="#DateFormat(Now(),"yyyy")#">
<cfset toYear= fromYear + 5>

<select name="cardYear">
    <option value=
"0" <cfif fromYear eq "0">selected</cfif>>
Select Year</option>
    <cfoutput>
    <cfloop index="year" from="#DateFormat(Now(),"yyyy")#" to="#toYear#" step="+1">
        <option value="#year#" <cfif fromYear eq year>selected</cfif>>#year#</option>
    </cfloop>
    </cfoutput>
</select>

All ColdFusion Tutorials By Author: Carlos Batista
  • Set Credit Card Years Forever
    I downloaded a tutorial for populating a year select list and made some changes that I think will be helpful to you. Once you set it up, you don’t have worry about it anymore. It will populate itself with the years from current to whatever number of years you want.
    Author: Carlos Batista
    Views: 13,270
    Posted Date: Monday, May 14, 2007
  • Next - Previous made easy

    Display a Next and Previous Page link without much hassle. its just that simple


    Author: carlos batista
    Views: 2,441
    Posted Date: Wednesday, July 29, 2009
  • Export to Excel made easy

    a simple way to export data to an excel spreadsheet and include the total at the end of the list


    Author: carlos batista
    Views: 2,434
    Posted Date: Wednesday, July 29, 2009
  • Search Engine with alphabetical links, menus and navigation table on result page

    For this tutorial I'm using the CFDOCEXAMPLES database. If you just copy and paste the codes to its particular CFM file it'll work perfectly.

    INDEX.CFM
    PARKRESULT.CFM

    The navigation table may seem a bit clustered but if you break it down, you'll see it's quite simple.

     


    Author: carlos batista
    Views: 1,972
    Posted Date: Thursday, September 24, 2009
Download the EasyCFM.COM Browser Toolbar!