[FX.php List] [OFF] Luhn validation for Credit Card?
Joel Shapiro
jsfmp at earthlink.net
Fri Aug 7 11:21:11 MDT 2009
Thanks Jonathan and Michael
I'm not Michael, but...
It's possible for anyone to disable JavaScript on her/his browser,
and people on this list have stated that some large corporations or
institutions disable JavaScript on all their users' workstations.
Whenever I use JavaScript for any kind of form validation I still do
the same checks a second time in PHP. JavaScript can be nice
because, being client-side, it's immediate for the user. PHP, being
server-side, happens after form-submission but is important because
it can never be circumvented by the user.
-Joel
On Aug 7, 2009, at 7:10 AM, Jonathan Schwartz wrote:
> Question for Michael...
>
> It is said that you can not rely on javascript working 100% of the
> time. Do you agree? If so, do you have a backup for dealing with
> that event...such as running a php script instead, for instance?
>
> Thx
>
> Jonathan
>
> At 3:49 PM +1000 8/7/09, Head Honcho wrote:
>> Hi Joel,
>>
>> On 07/08/2009, at 11:19 AM, Joel Shapiro wrote:
>>
>>> Hi all
>>>
>>> I've inherited a project that validates a basic credit card
>>> number within FMP using the Luhn algorithm
>>>
>>> ("The Luhn algorithm or Luhn formula, also known as the "modulus
>>> 10" or "mod 10" algorithm, is a simple checksum formula used to
>>> validate a variety of identification numbers, such as credit card
>>> numbers..."
>>> http://en.wikipedia.org/wiki/Luhn_algorithm )
>>>
>>> I'd rather check this in the PHP before submission to FMP.
>>
>> I check this with javascript before it gets sent to the server. I
>> also have a php check script if jonathan's doesn't suffice.
>>
>> HTH.
>>
>> Regards
>>
>> Michael Ward
>> --
>> Head Honcho
>> CustoMike Solutions
>> Member, FileMaker Business Alliance
>> Member, FileMaker Technical Network
>> FileMaker 7 Certified Developer
>> FileMaker 8 Certified Developer
>> FileMaker 9 Certified Developer
>> FileMaker 10 Certified Developer
>> 10 Wandoo Crt
>> Wheelers Hill, 3150
>> ph 0414 562 501
>> headhoncho at customikesolutions.com
>>
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> --
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-370-5011
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list