|
Blank Credit Card Information |
Post Reply |
Author | |
CETroutman
Newbie Joined: March/16/04 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
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... |
|
Techno Geek
Admin Group Evil monkey living in my closet! Joined: March/11/04 Location: United States Status: Offline Points: 1206 |
Post Options
Thanks(0)
|
Did you try restoring payment2.asp, confirm1.asp?
|
|
Techno Geek
Customer Support Engineer ComCity and SalesCart Technical Support |
|
UpstateGirl
Newbie Joined: March/21/04 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
It does not give a warning if the cc # is left blank only if the cc # is invalid.
|
|
Guests
Guest Group |
Post Options
Thanks(0)
|
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.
|
|
Techno Geek
Admin Group Evil monkey living in my closet! Joined: March/11/04 Location: United States Status: Offline Points: 1206 |
Post Options
Thanks(0)
|
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 |
|
UpstateGirl
Newbie Joined: March/21/04 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
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?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |