i have these kind of tabs on my page
Equ | Tax | Balanced | Debt | Funds | ETF | Gilt .......
and then there's space below these tabs. When user clicks on these tabs then a data corresponding to these tabs has to be displayed in that space without changing the url of the page.Like when i click Equ then its data will be displayed in that space ,if i click tax then its data will be displayed in that same space as if it has overwritten the previous data.The data that has to e shown is calculated using php. Now what is the easiest way to do so using php or javascript ???
some coding help would be appreciated here .
EDIT: see i know this can be done using javascript but the data that has to be shown is in php variable .Now how to assign a php variable to javascript????
<script type="text/javascript">
function showhide(ref)
{
document.getElementById('mf').innerHTML= HERE I WANT A PHP VARIABLE;
}
</script>
how can i send my pfp variables in onclick event so that they can be used in the function???