Szar wrote:
> "Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
> news:bqrsa4$270tuu$1@ID-18487.news.uni-berlin.de...
>
>>Szar <zarwell.RemoveThis@hotmail.com> wrote:
>>
>>>www.mysite.com/index.php?myvar=dog myvar is not set. What's up?
>>
>>Read the documentation of PHP. It has nothing to do with Apache.
>>hint: register_global
>>
>
> Got it. Thanks! I started using $_REQUEST like I should have in the first
> place and left globals off.
> Steve.
You should really be using $_GET or $_POST rather than $_REQUEST. The
reasoning is that if someone created a submit form with GET variables in
the "action" and POSTED fields in the form, $_REQUEST will have both,
and you would not know whether they were GET or POST variables. If you
had a var of the same name in each, then the GET one would be
overwritten in the $_REQUEST array.
--
Justin Koivisto - spam.RemoveThis@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: PHP Working???