Re: URL variables, and the $_GET[xxx] function...
| From: | Greg Donald | Date: | Thu, 21 Oct 2004 13:40:21 +0000 |
| Subject: | Re: URL variables, and the $_GET[xxx] function... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199976@lists.php.net to get a copy of this message | ||
On Thu, 21 Oct 2004 14:08:28 +0100, tristan.pretty@risk.sungard.com
<tristan.pretty@risk.sungard.com> wrote:
> I'm moving hosts for a freelance site I do...
>
> They have an events section, and it's sortable by date, name and category
> etc...
> To achieve this, I passed the search/sort variables via the URL...
> However, I'm testing the new server, and those variables are not being
> detected?
>
> I've put this code at teh top of the code on events page '$sort_by =
> $_GET[sort_by];' etc...
> And while that sorts out the problem, I'm curious as to why I need to do
> that, and if those changes will cause me probs elsewhere?
>
> Perhaps a rookie Q, but I guess we all learn something every day eh?
>
> Any thoughts?
I'm guessing you used to have register_globals on, and now you don't.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/