Forum Home Forum Home > Legacy Products > SalesCart Standard / PRO / SQL
  New Posts New Posts RSS Feed - Blank Credit Card Information
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedBlank Credit Card Information

 Post Reply Post Reply
Author
Message Reverse Sort Order
CETroutman View Drop Down
Newbie
Newbie


Joined: March/16/04
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote CETroutman Quote  Post ReplyReply Direct Link To This Post Topic: Blank Credit Card Information
    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...
Back to Top
Techno Geek View Drop Down
Admin Group
Admin Group
Avatar
Evil monkey living in my closet!

Joined: March/11/04
Location: United States
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote Techno Geek Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
UpstateGirl View Drop Down
Newbie
Newbie
Avatar

Joined: March/21/04
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote UpstateGirl Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Guests View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Techno Geek View Drop Down
Admin Group
Admin Group
Avatar
Evil monkey living in my closet!

Joined: March/11/04
Location: United States
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote Techno Geek Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
UpstateGirl View Drop Down
Newbie
Newbie
Avatar

Joined: March/21/04
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote UpstateGirl Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.04
Copyright ©2001-2015 Web Wiz Ltd.

Copyright 2015 by ComCity® LLC and SalesCart™.  All Rights Reserved