Hi there,
Hello, I have attached the code file in the new thread.
Can any one help me in this drop down year code please.
I have a credit card transaction page, where the user was asked to choose the start and expiration year of his credit card. I have attached the code with this posting.
Here is the code for the expiration year…
// ######## expiration year ##############
$year = date(“Y”);
$to = $year + 10;
if ($payment[exp_year] == “”) {
$payment[exp_year] = $year;
}
for ($i = $year; $i < $to; $i++) {
$temp = $i;
if ($payment[exp_year] == $temp) {
$years .= “<option value=”$temp” selected>$temp”;
} else {
$years .= “<option value=”$temp”>$temp”;
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Can anybody write the code for the start date (10 years) please.
many thanks,