I am working on getting these tabs working for my project. I have the tabs but they are not working correctly. I believe it is because they are being generated from a php array. How can I define a variable to act as the current page in the script I am using?
if (isset($_POST["list2"]) && is_array($_POST["list2"]) && count($_POST["list2"]) > 0)
foreach ($_POST["list2"] as $item)
$link = str_replace(' ', '_', $item); ?>
<li><a href="#div_<?php print $link ?>"><?php print $item ?></a></li>
<?php } } ?>