|
Posted by Paul Lautman on July 5, 2008, 4:57 pm
Please log in for more thread options
Bill H wrote:
>I wouldn't consider myself a newbie to PHP since I have never written
> one line of code in it (am a perl guy myself), but part of a team I am
> working with is writing some php interfaces into a database and 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)) 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.
In my experience php scripts are written to interact with specific web
pages. You code the web page to match the script that will process its
input.
|