My PHP controller (index.php) code to load the correct frames is as follows:
self.location='index.php?cat=' + val ;}
<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');
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.
self.location='index.php?id=toevoegen?cat=' + val ;}