Wondering how I would use either EE or PHP to dynamically generate a list of years starting from this year. I'm doing this for a credit card expiry select box that needed to use EE global variables for the label, which is why i couldn't just use the fields spit back from the gateway. And of course their example code is just a static list starting with 2012, so I'd rather the list be dynamic for say 10 years starting this year. Can someone tell me how to do this?
I wrote a simple plugin to do this and you can also use this plugin (I did not write rangee): http://devot-ee.com/add-ons/rangee