Contents |
Retrievs string of expiration date options to be used in a <SELECT> tag. Typically used in the payment checkout template.
$string = eV::orderExpDateOptions($expDate=NULL);
String of option tags to be placed inside a <SELECT> tag.
// set a pre selected date for the exp date $expDate = "2008-10-08"; // get the option tags $expDateOptions = eV::orderExpDateOptions($expDate); // output the results in a form echo "<form action=\"index.php\" method=\"post\">"; echo "<select name=\"expDate\">" . $expDateOptions . "</select>"; echo "<input type=\"submit\" value=\"go!\"> echo "</form>";