Credit card Year dropdown
This snippet adds credit card select box dropdown values 10 years in future from current year.
Copy this code and paste it in your HTML
<?php
//this code generates option tags for select dropdown
for($i=date("Y");$i<date("Y")+11;$i++) echo "<option value=\"$i\">$i</option>"; ?>
Report this snippet
Comments
Subscribe to comments