Re: code change in new version?
| From: | Pat Johnston | Date: | Tue, 04 Feb 2003 21:43:54 +0000 |
| Subject: | Re: code change in new version? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18360@lists.php.net to get a copy of this message | ||
There was a thread on the list regarding this. Do a search here for
'register globals on and off'. That thread should help you..
Regards
"Paradiddles" <fojomo@yahoo.com> wrote in message
news:20030204191800.11232.qmail@web20413.mail.yahoo.com...
>
> Hey everyone!
>
> I noticed that in the older version of php (when register globals was 'on'
by default) that coding for 'post' variables (where info is passed from the
form into the variables) took an easier approach ...ie.
>
> $totalqty = $tireqty + $oilqty + $sparkqty; (old way)
>
> $HTTP_POST_VARS["tireqty"] + $HTTP_POST_VAR["oilqty"] +
HTTP_POST_VARS["sparkqty"]; (new way)
>
> 2 questions:
>
> 1.) Is there a shorter way to code this stuff now?
>
> 2.) Do I need to change the way I code for everything now, or do the
changes only apply to retrieveing form variables?
>
> thanks-
>
>
>
> ----------------
> "forget your lust for the rich man's gold. All that you need, is in your
soul. You can do this if you try. All that I want for you my son, is to be
satisfied"
>
> ~ Lynard Skynard
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now