is there anyway i could grab the variable from the url and do a conditional statement.

e.g.

<li><a href="index.php?main_page=delivery_area"
<?php if ($main_page == "login") {
echo 'class="orangebackground";
}
echo '>'; ?>

i just quizkly typed something like that so u understand what i mean