Author Mike Plumlee on 07-15-2002 at 17:41 (EST)
|You should have a switch in the controls that says "require credit card entry Y or N" AND if Y then you should validate the credit card for correctness.|
That would help. We are getting tee time reservations without the credit card entry even though we put this requirement in the header message. we now have to email the person back and demand a credit card or we don't take the tee time. A perl script demands a lot easier than an email.
|Messages In This Discussion|
| 1. RE: Credit Cards|
Author Bill Weiner on 07-16-2002 at 05:33 (EST)
|Which field are you using to collect the credit card number? $reserve_field1 - $reserve_field8?|
Depending on which field you are using, I could provide instructions on how to make that field a "required" field.
As an example, if you were using "$reserve_field7" to collect a credit card number, then you could make that field required by:
1) Locating the following line:
$res_field7 = &validate_string($res_field7);
2) Adding the following lines immediately AFTER that line:
if (($reserve_field7 =~ /S/) && (!($reserve_field7 =~ /NONE/i)) && (!($res_field7 =~ /S/)))
&missing_input("Missing Input","Please enter $reserve_field7.");
| 2. Credit Cards|
Author Mike Plumlee on 07-16-2002 at 11:10 (EST)
|Thanks for the tip - I'll find the line and add yours - and run a test.|
Let ya know.
| 3. Thanks Bill|
Author Mike Plumlee on 07-16-2002 at 21:49 (EST)
the hack worked perfect on requiring the credit card and expiration date entry.
Worked first time like a charm.
Thanks for the help.
| 4. RE: Thanks Bill|
Author Bill Weiner on 07-17-2002 at 04:54 (EST)
|Great! Glad that worked for you :^)