Print Page | Close Window

Blank Credit Card Information

Printed From: SalesCart
Category: Legacy Products
Forum Name: SalesCart Standard / PRO / SQL
Forum Description: All questions pertaining to SalesCart Standard, PRO and SQL should be posted here.
URL: http://forum.salescart.com/forum/forum_posts.asp?TID=46
Printed Date: November/23/24 at 8:55pm
Software Version: Web Wiz Forums 11.04 - http://www.webwizforums.com


Topic: Blank Credit Card Information
Posted By: UpstateGirl
Subject: Blank Credit Card Information
Date Posted: April/01/04 at 1:45pm
Form accepts blank CC# even though a credit card has been selected as method of payment. The checkluhn.inc file is included on the confirm 1 page. Shouldn't the user be sent back immediately after leaving the payment 2 information page if this field is blank?



Replies:
Posted By: Techno Geek
Date Posted: April/01/04 at 1:54pm
Once you click on continue order on payment2.asp it should give the customer a warning.

-------------
Techno Geek
Customer Support Engineer
ComCity and SalesCart Technical Support


Posted By: Guests
Date Posted: April/01/04 at 2:29pm
You should apply your own validation to the payment form. This way the customer does not leave the payment page if a field is left blank.


Posted By: UpstateGirl
Date Posted: April/01/04 at 2:43pm
It does not give a warning if the cc # is left blank only if the cc # is invalid.


Posted By: Techno Geek
Date Posted: April/03/04 at 2:00pm
Did you try restoring payment2.asp, confirm1.asp?

-------------
Techno Geek
Customer Support Engineer
ComCity and SalesCart Technical Support


Posted By: CETroutman
Date Posted: April/12/04 at 10:43pm
Try something like the following...

In the <head> section:
<script language="JScript">
// Function to check if form fields are filled
function formfull(shipform){
    if (isempty(document.pymnt.CardName.value)){
      alert("Please enter your Exact Name on Card...");
      document.pymnt.CardName. focus()
      return (false);
    }
    if (isempty(document.pymnt.CardNumber.value)){
      alert("Please enter your Card Number...");
      document.pymnt.CardNumbe r.focus()
      return (false);
    }
    if (isempty(document.pymnt.CardExpire.value)){
      alert("Please enter your Card Expiration Date...");
      document.pymnt.CardExpir e.focus()
      return (false);
    }
}
</script>

And, where the <form> tag is for the for the form on that page:
<form name="pymnt" method="POST" name="Payment" action="confirm1.asp" onSubmit="return formfull();">

I have this validation working on all forms on my client's site...


-------------
CETroutman
Independent Computer Consultant for Home, Home Office, and Small Business
http://home.mesh.net/troutman/cetro/cetro1.html



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.04 - http://www.webwizforums.com
Copyright ©2001-2015 Web Wiz Ltd. - http://www.webwiz.co.uk