S
Sentinel
how can i place a script in body (it must be ran automaticly when html
interpreter reaches it) that will redirect to another page?
what i am doing is
checking in php if login is successful (php script is in javascript
that is in body) and if so i will print out the url to wich the
javascript must redirect the browser
<body>
<script language="javascript">
window.location=<?php a lots of ifs thens and elses and finaly print
"index2.php"; ?>
</script>
</body>
everything works fine but he browser doesn't redirect...
the page source shows
<body>
<script language="javascript">
window.location=index2.php
</script>
</body>
please help
thanks
interpreter reaches it) that will redirect to another page?
what i am doing is
checking in php if login is successful (php script is in javascript
that is in body) and if so i will print out the url to wich the
javascript must redirect the browser
<body>
<script language="javascript">
window.location=<?php a lots of ifs thens and elses and finaly print
"index2.php"; ?>
</script>
</body>
everything works fine but he browser doesn't redirect...
the page source shows
<body>
<script language="javascript">
window.location=index2.php
</script>
</body>
please help
thanks