RE: Formatting form information before submission

by "Ann Ezzell" <amcbainezzell(at)alum.mit.edu>

 Date:  Fri, 25 Oct 2002 09:16:43 -0700
 To:  "'Darrell King'" <darrell(at)webctr.com>,
"'HWG Techniques'" <hwg-techniques(at)hwg.org>
 In-Reply-To:  king
  todo: View Thread, Original

Unfortunately, this approach doesn't handle names like McDonald...

This is why a lot of databases just store everything in uppercase.

> -----Original Message-----
> From: owner-hwg-techniques(at)hwg.org 
> [mailto:owner-hwg-techniques(at)hwg.org] On Behalf Of Darrell King
> Sent: Friday, October 25, 2002 7:26 AM
> To: HWG Techniques
> Subject: Re: Formatting form information before submission
> 
> 
> If you can identify each field seperately , you could handle 
> case simply
> enough.  Fior instance, if the "name" variable is called $name:
> 
> $name=ucwords($strtolower($name));
> 
> The inner function lowercases all the letters in the 
> variable, then the
> outer function, ucwords(), makes the first letter of each 
> word uppercase.
> 
http://www.php.net/manual/en/function.ucwords.php

D


----- Original Message -----
From: Missy Scott

Hi all,

The problem:  When people go to submit the forms, they don't always use
proper capitalization.  A lot of them are OK, but there are some that
look
like:
JoHn Q. PuBliC
123 AnYwHeRe St
AnYWhEre, USA

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.