Spaces are not allowed

Note: This post might be a little dated. It was published in October 2006.

I just tried to fill in an online form and I typed in my details (actually I pressed a little button on the Google toolbar that filled most of it in for me. Marvellous…) then submit.

The form popped up a warning dialog telling me to fix my postcode. It then highlighted the postcode field and in red letters next to it was the phrase ‘Spaces are not allowed’.

I did wonder whether it would have been less effort for the programmer to simply remove the spaces for me then to go to all that trouble… I can’t think of any technical reason why it wouldn’t be easier to strip the spaces from the postcode field than it is to go through all that validation and error message business.

4 comments