Hi!
Got this strange variable problem:
I display two pictures with the following links:
<a href="http://www.test.nl/getk.php?catego=lifestyle">
and
<a href="http://www.test.nl/getk.php?catego=nature">
When the first link is clicked, this is what i get:
<?
session_start();
$dis=session_id();
echo $catego; //<--- this here gets the variable right, and prints 'lifestyle'
if ($catego="lifestyle") {
$imagetotal2 = "<img src = 'catpics/3_lifestyle_pic.jpg'>";
} elseif ($catego="nature") {
$imagetotal2 = "<img src = 'catpics/nature_pic.jpg'>";
}
echo ($imagetotal2); //<--- this echoes the 3_lifestyle_pic.jpg to screen.
Now, when the second link is clicked, 'echo $catego' will echo 'nature', but the same image will appear (the lifestyle image)!
Anyone?
Thefisherman