hi all im having trouble with my tab box. im trying to change which tab is active depending on which php file has run.
[php]
[/php]
"; } $responce .= ''; unset($_SESSION['ERRMSG_ARR']); } //Check whether the session variable SESS_MEMBER_ADMIN is present or not if($_SESSION['SESS_MEMBER_ADMIN'] == 'yes' ) { $string = ' Welcome '.$_SESSION['SESS_FIRST_NAME'].' '.$_SESSION['SESS_LAST_NAME'].'
';
}
elseif($_SESSION['SESS_MEMBER_ADMIN'] == 'no' ) {
$string = 'customer';
}
else{
$string = '
';
}
?>
SNIPITS.CO.UK
the problem is when i click submit on the form the external php file does what is needed then redirects to the current page but the tab always goes to the first one “Add New Item” i know this is because of the" class=“tabview-active” " part but i want to move this to the other tabs depending which one is currently being used. (full code below)
[php]
"; } $responce .= ''; unset($_SESSION['ERRMSG_ARR']); } //Check whether the session variable SESS_MEMBER_ADMIN is present or not if($_SESSION['SESS_MEMBER_ADMIN'] == 'yes' ) { $string = ' Welcome '.$_SESSION['SESS_FIRST_NAME'].' '.$_SESSION['SESS_LAST_NAME'].'
Content for Tab 3 |
you need to log in |
Log in |
<?php include "logo-navigation.php";?>
<?php
<?php include "foot.php"?>
echo $string;?>
[/php]