I need an script wich redricts automaticly to an frame:
in the file1.php there should be an code something like this
if page =$phpself
openurl index.php?page=file1
example, if somewone wants to open file1.php it should redirect to index.php?page=file1
This is what if got sofar
<HTML><HEAD>
<script language='JavaScript'>
URLName = '' + window.location
lastSlash = URLName.lastIndexOf('/')
URLName = URLName.substr(lastSlash + 1,URLName.length - lastSlash)
if (self.parent.frames.length!=3)
{
window.top.location.replace('index.php?page='+URLName')
}
</script>
but ther is an error 🙁 so if anyone has an other option