websurfer 0 Junior Poster in Training

Hello, all:

I have this small script where I am tryign to switch sessions based on what url-variable appears on address, as a way to use like a breadcrumb... and so far it only takes the first one, but then the "category" one doesnt catch... it keeps the "pageNum_worksRS" still active... any ideas? what am I doing wrong?

Thanks!

<?php

session_start();
if (isset ($_GET['pageNum_worksRS'])) 
{
$_SESSION['breadcrumb'] = "index.php?pageNum_worksRS=" . $_GET['pageNum_worksRS'];
} 
if (isset ($_GET['category']))
{
$_SESSION['breadcrumb'] = "workCategories.php?category=" . $_GET['category'];
}

?>