[ic] Debit Cards

Jonathan Clark interchange-users@lists.akopia.com
Tue Jul 10 05:09:01 2001


> I think I will use the [if] bit as it seems much less complicated.  I set
> the card "start year" field I created to: this year - 4, is 4 years enough
> to go back or are there older credit / debit cards?
>

I use last 10.... purely because I have seen it used on other sites,
although looking at my card it was issued this year with a life of two
years. Here's my code:

	<SELECT NAME=mv_credit_card_iss_year>
	[loop option=mv_credit_card_iss_year lr=1 list=`
		my $year = $Tag->time( '', { format => '%Y' }, '%Y' );
		my $out = '';
		for ($year-10 .. $year) {
			/\d\d(\d\d)/;
			$last_two = $1;
			$out .= "$last_two\t$_\n";
		}
		return $out;
	`]
		<OPTION VALUE="[loop-code]"> [loop-pos 1]
	[/loop]
	</SELECT>

Jonathan
Webmaint.