The Little Guy Posted April 26, 2008 Share Posted April 26, 2008 Am I blind or something? The first link works an the second one doesn't. Their are six more of the links (formatted the same as the first link) above the first link which also work. <a class="<?php if($action=='stats'){echo 'mailNav1';}else{echo 'mailNav2';}?>" href="/home?action=stats">Stats</a> <a class="<?php if($action=='feed'){echo 'mailNav1';}else{echo 'mailNav2';}?>" href="/home?action=feed">Feed</a> Basically when I am at this location: /home?action=feed it displays one of the other links... pages instead: <a class="<?php if($action=='profile'||!isset($_GET['action'])){echo 'mailNav1';}else{echo 'mailNav2';}?>" href="/home?action=profile">Profile Info</a> Link to comment https://forums.phpfreaks.com/topic/103029-solved-ifelse-and-_get/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.