Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Agile Development for an Agile Military
GUI Patent War Brewing »

Even the Big Guys Get Validation Wrong

May 13th, 2004

I ordered a computer for someone from Dell last night. When I got to the end of the order, I mistyped a digit on the credit card number and the form was redisplayed with an “invalid credit card number” error. I added spaces between the digits (as they appear on the card) to check the number. Sure enough, one digit was wrong. I re-submitted, but the “invalid card number” error remained. I was sure the card was valid and that I typed in the correct number. After a little experimenting, it turns out that the order form could not handle the spaces that I added. The person I was ordering the computer for was looking over my shoulder and said that he would have never figured out to remove the spaces. I wonder how many people enter their credit card numbers as XXXX XXXX XXXX XXXX, just as it appears on the card.

(P.S. Dell seems to be a master at “Do you want fries with that?”)

categories Usability, Web Design
tags input-filtering, input-validation, Usability

Related Posts

  • The Usability of Input Filtering
  • Delicious Outage Link Dump
  • The PHP scalability saga continues
  • Software Development Team Diversity
  • PHP Security Ramblings
You can leave a response, or trackback from your own site.

4 Responses to “Even the Big Guys Get Validation Wrong”

  1. #1 Enric Naval responds...
    November 8th, 2004 at 10:53 am

    This can be solved by puting a small example entry besides the text area. The users would see a text like:
    Example: XXXXXXXXXXXX (all numbers, no spaces)[
    When users encounter the problem, they will read the small example text and remove the spaces to make their entry as similar to the example as posible.

    This is many times easier than checking and correcting every single possible way a user can enter the data (users can be very imaginative when it comes to mangling input data].

  2. #2 Enric Naval responds...
    November 8th, 2004 at 10:54 am

    Ejem, let’s try a smaller text size.

    Example: XXXXXXXXXXXX (all numbers, no spaces)

  3. #3 Michael responds...
    May 1st, 2007 at 10:01 am

    I just type it in slowly and dont put in spaces cause of that error.

    Its one of those things, dont get too caught up in not making errors. If you do go back and correct it, but check your work over slowly the first time.

  4. #4 James Benson responds...
    July 1st, 2008 at 6:32 pm

    Most the sites I’ve seen do not replace spaces, how hard can it be.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

code: use [code=php][/code].

Comment Preview

  • Search

  • Subscribe

    Subscribe All Posts
    Subscribe All Comments
    Subscribe All Bookmarks
    Subscribe with Bloglines Subscribe with My Yahoo Add to netvibes Subscribe in NewsGator Online Add to Google
  • Share This

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (16)
    • Open Source (14)
    • PHP (95)
    • Software Design (28)
    • Usability (14)
    • WACT (7)
    • Web Design (20)
  • Recent Comments

    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  94
      noujoum, Michiel Van Kets, isorabins [...]
    • Sarah Snow Stever  24
      Dubai Web Design, Development, Snowcore, ennah [...]
    • Benchmarking PHP's Magic Methods  8
      stas, minikperi, Shelon Padmore [...]
    • Keywords and Language Simplicity  7
      olmse, Handy, minikperi [...]
    • Even the Big Guys Get Validation Wrong  4
      James Benson, Michael, Enric Naval [...]
    • Improved Error Messages in PHP 5  12
      James Benson, Iron, baggreeddog [...]
    • How to Transfer Mac OS X Application Data between Computers  36
      Secret Santa, micala, Khaled bin Alwaleed [...]
    • Programming Language Trends via Google  15
      MattW, Jeff Davis, retry [...]
    • PHP Development From Java Architects Eye  10
      Grrkkvho, Bobrila, FelhoBacsi [...]
    • The value of MVC  9
      Euvmetkk, Bobrila, Vulchak [...]
    • nofollow and comment spam  5
      Scopmazo, Qmumqckx, sss [...]
  • Pages

    • Tags
  • Recent Posts

    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)
    • Keywords and Language Simplicity
    • Improved Error Messages in PHP 5
    • Michigan Taxes Graphic Design Services
    • Ruby versus PHP or There and Back Again
  • Archives

    • 2008: May
    • 2007: Jan Feb Mar Apr May Sep Oct Nov
    • 2006: Jan Feb Mar Apr May Jun Jul Oct Nov Dec
    • 2005: Jan Feb Mar Apr May Sep Oct Nov Dec
    • 2004: Apr May Jun Jul Aug Sep Oct Nov
  • Menu

    • Register
    • Log in