Credit Card Expiry Date Drop Down Menu

  • Thread starter Thread starter Mike Pocock
  • Start date Start date
M

Mike Pocock

I'm taking orders via credit cards and need to have the mm/yyyy as drop down
boxes but the kicker is I need them entered into one field (database and
app. already exist and customers manually enter the expiry info into one
field.) Must change to the mm/yyyy (into one field) to conform to new order
system.

Anyone have suggestions? Thanks in advance.
 
You need to add a drop down "option select"
to the form field.
It will look like this in html view:

<select name="Expiration Date" size="1">
<option value="Select Expiration Date">Select date</option>
<option value="11/2003">11/2003</option>
<option value="12/2003">12/2003</option>
<option value="01/2004">01/2004</option>
<option value="02/2004">02/2004</option>
<option value="03/2004>03/2004</option>
</select


and so on.

hth

--
95isalive
This site is best viewed..................
...............................with a computer
I'm taking orders via credit cards and need to have the mm/yyyy as drop down
boxes but the kicker is I need them entered into one field (database and
app. already exist and customers manually enter the expiry info into one
field.) Must change to the mm/yyyy (into one field) to conform to new order
system.

Anyone have suggestions? Thanks in advance.
 
Hi Steve:

Thanks for the response. Wondering if there is a way to have the expiry
month drop down separately from the year but still entered together into the
one field. (In other words two separate drop down menus that end up in the
same field.) The method you've indicated would appear to create a very long
list - although workable.

Thanks for your quick reply.

Mike
 
Are you using ASP?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
I'm using the Frontpage webbot for the form (which collects the card and
expiry info) which saves the info in an access DB - but it is saved as an
..asp page.

Thank for your response,

Mike
 
Hi Mike,

Is there are field in the form for the concatenated month / year? If not,
set it up so that the data base will be updated by that field. Next, select
the field, and enter HTML view and make the field hidden.

<input type="hidden" name="mmyyyy" >

Back to normal view and select the submit button and return to HTML / Code
view add an onclick event to concat the month and year into the hidden
field.

onclick="this.form.mmyyyy.value =
this.form.mm.options[this.form.mm.selectedIndex].value + '/' +
this.form.yyyy.options[this.form.mm.selectedIndex].value ; return true;"


HTH,
 
Back
Top