[FX.php List] Leading zero getting dropped in a login
Jon Montgomery
igsmasupport at igsmasouth.org
Tue Jan 29 06:33:52 MST 2008
Steve,
You are correct. That login form was my summer testing login and I
never tested with a leading zero AFTER I put the javascript validation set
at numeric. After I changed it to Alphanumeric, everything was ok. And the
user that had the problem was on a different page and the only way she could
have had a problems was to delete that leading zero. I tested it AFTER I
changed my javascript and had no problem. So it was more of BRAIN PANIC on
my end as to my users. I had a good night sleep and wouldn't have if not
for your and the others help.
Thanks ALL!
Jon Montgomery
On 1/29/08 1:40 AM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:
> Hi Jon,
>
> You can still validate that the field only contains numeric characters, you
> just can't treat it as a number, so you'd have to check each character
> that's being submitted is within the charset [0-9]...
>
> As to 'why now', my guess is that it's not just started happening now, but
> that nobody got round to telling you till now...
>
> Cheers
> Steve
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Jon Montgomery
> Sent: 28 January 2008 22:29
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Leading zero getting dropped in a login
>
> Steve,
> Thank you. I change the javascript validation to Alphanumeric (if they
> entered any letters it would kick them out anyway as there are no user id's
> with letters in them.).
> But why did it just now start causing a problem? We used this same
> system last year for the first time. No problems and it just started today.
> As I looked through the data base, there are other users with leading zeros
> entered and they never got, (or told me) an error? Oh well, it works now, I
> hope.
>
> Thank you so much!
>
> Jon Montgomery
>
>
> On 1/28/08 4:23 PM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:
>
>> If you see it vanish from the field when you click submit, then it's
>> certainly the javascript... probably because you're validating it as a
>> number, in which case it can't start with 0...
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> 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