Ok, I need to know how to call a function by pressing a button. Its an img tag that calls a function that includes a php file (its like a link that only loads one thing, i didnt use frames because theyre old school and dont render on all browsers.) So far I used this (fruitlessly):
[code=php]
<?php
function home()
{
include(“home.php”);
}
?>
And then this html code (dont mind anything but the onclick, the rest is for a rollover.):
[code=html]
<img
src=”index_files/home_out.gif” style=”width: 128px; height: 25px;
border: none;” onmouseout=”button_off(‘eg’); return true”
onmouseover=”button_on(‘eg’); return true” alt=”home” id=”eg” onClick=”home()”/>
I dont really know if thats the right way to call a function in php. Help?