Reply to Re: Leading Zeroes

Your name:

Reply:


Posted by Beauregard T. Shagnasty on 04/27/07 13:24

Kevin Marks wrote:

> I have a form field that takes the Credit Card ID from the back of the
> card. Sometimes this number begins with a zero. When the data goes
> from the form, there are only two digits left. Is there a way to keep
> the leading zero?

Where are you not seeing the leading zeros? In your database? In an
email sent to you upon submit?

My database philosophy has always been "if you don't need to do math
with it, make it a character field." Like zip/postal code fields.
Numeric fields will (almost) always strip leading zeros.

--
-bts
-Motorcycles defy gravity; cars just suck

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация