self.location='index.php?cat=' + val ;}
My PHP controller (index.php) code to load the correct frames is as follows:
<li><a href="index.php?id=add">Add new product</a></li>
break; case "home": include('home.html.php');
break; case "overview": include('add.html.php');
break; case "add": include('add.html.php');
self.location='index.php?id=toevoegen?cat=' + val ;}
so that the PHP index script loads the add.html.php automatically. However, when changing the self.location as described above the page is redirected to home.html.php.