i have a page which is home.php on that page i have a CSS tab which is tab1 and tab2 on that page in both tabs i have a link called next that pass variable to the next page (<a href='home.php? page=$lastpage' >NEXT</a>).if i click on next in the tab1 on home page(home.php) it will pass the variable and bring me to the home page and tab1 if i click on the next in tab2 it will also bring me to home page and take me to tab1 back.i want it to bring meto the home page and tab2 how can i do that.
Code:
<html>
<head>
<title></title>
<link href="SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<?php
if (isset($_GET['page'])) {
$pages = ($_GET['page']);
} else {
echo "page one";
}
?>
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">Tab1</li>
<li class="TabbedPanelsTab" tabindex="0">Tab2</li>
</ul>
<div class="TabbedPanelsContent">
<div class="tabb">
<?php
echo "<a href='home.php?page=$lastpage'>NEXT</a>";
?>
</div></div>
<div class="TabbedPanelsContent">
<div class="tab">
<?php
echo "<a href='home.php?page=$lastpage'>NEXT</a>";
?>
</div></div>
</head>
</html>
Comment