Jump to content

ASP Help


Guest ariam456
 Share

Recommended Posts

This code is supposed to get credit card month and year (03/07) but everytime people submit the CC info it is different when I retrieve the info.What is submitted in the form is 08/09 | What is received is 8/9/2006Basically I get the current year as the expiration date for every CC year submitted.I have this code but I don't know what to change about it. This code is at the beginning of the ASP page:if trim(ccexpire)="" or InStr(ccexpire,"/") <> 5 or len(ccexpire)<> 8 then msg=msg & "<br>The expiration date is incorrect."ccexpire =""Towards the middle of the ASP page there is this code:<input size=5 name="ccexpire" maxlength=5 value = "<%=ccexpire%>"></td>Anyone know what changes I can make so that the CC info appears as month and year (i.e. 05/09)?Any suggestions, comments and help are welcome...Thanks in advance! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...