[ic] Debit Cards

Garry interchange-users@lists.akopia.com
Tue Jul 10 05:17:00 2001


Thanks again, I will change my -4 to -10, just in case.  My personal cards
have a lifespan of 4 years, thats what I went by originally.

Thanks to your help, thats another task dealt with on this potentially great
program !! - now onto my next....

cheers

Garry


----- Original Message -----
From: "Jonathan Clark" <jonc@webmaint.com>
To: <interchange-users@developer.akopia.com>
Sent: Tuesday, July 10, 2001 10:07 AM
Subject: RE: [ic] Debit Cards


>
> > 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.
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com