Hey all I have the following set up

<?php
if ($type[$r]=="finding happiness") {$vidlink="http://www.mormonchannel.org/mormonmessages?v=910937379001";}
else {$vidlink="http://www.lds.org";}
?>


later, in other php page, i have this..

<a id='findmore' href="<?php echo $vidlink ?>" target='_blank'><h3>Find out more about <?php echo $type[$r] ?>.</h3></a>


even when i know the value of $type[$r] IS "finding happiness" it always goes to lds.org. No syntax errors seem to be cropping up so what am I missing? Thanks.