[thelist] Rusty PHP questions...

Tom Dell'Aringa pixelmech at gmail.com
Mon Oct 15 11:51:44 CDT 2007


On 10/15/07, Darrell King <darrellgking at gmail.com> wrote:
>
> 2) Why reassign $_GET['id'] to $raceid? It's an unnecessary step
> unless you are going to do something with the latter that you don't
> want affecting the former. This might be the case if you are going to
> escape the input bur re-display the original variable in the output
> HTML,. for instance.  Think twice about the reassignment if it's just
> to be pretty, though, especially if efficiency concerns you.


My thought here - and I said I was rusty, I may be mixing terms - was to
make sure I initialized my variable first. Possibly it is already
initialized by default in this case?



More information about the thelist mailing list