Re: url
| From: | Greg Donald | Date: | Wed, 20 Oct 2004 17:16:59 +0000 |
| Subject: | Re: url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199917@lists.php.net to get a copy of this message | ||
On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McCullough
<mcwc@rocketmail.com> wrote:
> I have this old script I wrote 2-3 years back. I gets arguments from the url.
> index.php?area=blah
>
> The client moved the code to another server and some odd happened. Nothing seems to be parsing
> from the URL anymore.
>
> The top code is
>
> <? if (!isset($area)) { ?>
> HTML
>
> THis code no longer seems to work and I am racking my brain trying to figure out what.
register_globals is probably off.
You can fix this with an .htaccess file if the web server is apache:
php_flag register_globals on
or you can fix the code:
if(isset($_GET['area']))
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/