Okay, this code is long and I apolgize for that. I didn't post my
entire page code, but I think this is the important part where my
problem(s) is/are.
Its a strange problem because my page works about 85% as
expected.
If you go to this page and follow along.
Once the page is up, if you click on any of the links:
Viewing Owned list | Go to Want list | Go to On Loan list | Go to For Sale list | Go to On Order list
Viewing all format Movie list | Go to DVD only list | Go to VHS only list | Go to LaserDisc list
The page behaves normally. You can click on say Want list and
then VHS list and it displays the page correctly(correct query
behind the scenes. I had it echo the query for me when I was
testing the page.) and the url has the correct variables in.
Now, if you start from the default page(no variables passed in
the url line) and click on a Genre, say Action, it displays correctly
with the correct query and variables listed in the url.
Now, the problem becomes when you click on a Region, it doesn't
display as it should, the query is wrong, but the correct variables
are listed in the url.
The problem seems that depending on which selections I make,
I'm losing variables in the script, even though the url has them
showing correctly.
It gets even stranger in that if I start from the main page, choose
a Region or a genre, and one of the links: Viewing all format
Movie list | Go to DVD only list | Go to VHS only list | Go to
LaserDisc list, the page doesn't display correctly and seems to
lose variables. But, if you choose a region or genre and one of
the top links: Go to Owned list | Viewing Want list | Go to On
Loan list | Go to For Sale list | Go to On Order list, everything is A-
ok.
I hope this made sense and this problem has been driving me
nuts for a while.
If anyone needs to see the full code, let me know and I can
provide that.
This code is at the top of my page:
$Category = $_GET['Category'];
$MediaFormat = $_GET['MediaFormat'];
$Genre = $_GET['Genre'];
$Region = $_GET['Region'];
$Category = (($Category) ? $Category : 'Own');
$MediaFormat = (($MediaFormat) ? $MediaFormat : 'All');
$Genre = (($Genre) ? $Genre : 'All');
$direction = (($direction) ? $direction : 'ASC');
$Region = (($Region) ? $Region : 'All');