Posted by Gordon Burditt on 10/14/06 23:53
>I recently switched hosts, and now my main controller page for my
>website isn't working correctly anymore. It worked fine on the old
>host. The new host uses 5.0.4 whereas the old host used PHP 4.*.
>
>I used switch statements to swap out text and graphics depending on the
>parameters defined in the URL. Now it looks like the controller page is
>ignoring them.
>
>Here's the page:
>
>http://www.purple-pony.com/main.php?ID=0&S=0
>
>When you click "Work" or "Links" you should get different content as
>well as different images, but it seems to be defaulting to the "About"
>page all the time.
>
>Here is a sample of the switch statement I used:
>
><?php
>switch ($S)
Register-globals is evil. Newer versions default it off, and
hopefully they will get rid of it entirely.
Use $_GET['S'], not $S.
[Back to original message]
|