|
Posted by The Natural Philosopher on July 6, 2008, 5:12 am
Please log in for more thread options Tim Roberts wrote:
>> ...
>> I noticed that they are relaying on HTML form value names to always be
>> lowercase in their code (ie $_POST['save'] (fyi that may be typed
>> wrong))
>
> Nope, that's correct.
>
>> ...and from my experience it is always better, when reading in
>> the post information to convert the the form value name to uppercase
>> on the off chance that one web page may have NAME="save" and another
>> may have NAME="Save", this way you can will always get the value.
>
> I find this philosophy interesting. Because these names ARE
> case-sensitive, I would consider it a programming error to use different
> spellings in different web pages. It seems to me that this kind of
> mangling is just hiding errors and inconsistancies. I mean, if the company
> standard is that "<input> field names should always be in lower case", then
> by golly they should always be in lower case, and a programmer who writes
> NAME="Save" has committed an error.
And you end up with the sort of mess this computer is in.
I decided to include case sensitivity in the OS-X re-format. Now I cant
install Adobe CS3.
Adobe being Mac people have always relied on the fact that case didn't
matter.
And can't cope with life when it does.
Its a pain when I have a pair of directories on a samba mount called
images and Images, and he computer wrecks the whole file system trying
to work out which is which.
|