Page 1 of 1

redirec

Posted: Sun Aug 14, 2005 12:17 am
by nuttynibbles1984
hi, im doing a login page.if i successfully login, i will be directed to pageA.php. if not i be redirect to pageB.php.. but i know i cant use header(). so wat shu i do?

Posted: Sun Aug 14, 2005 12:22 am
by feyd
why can't you use header() ? Is it because of something like this?

Posted: Sun Aug 14, 2005 12:40 am
by s.dot
use a javascript if you can't use header.

Code: Select all

<script type="text/javascript">
<!--
document.location.href = 'page.php';
//-->
</script>

Posted: Sun Aug 14, 2005 12:45 am
by John Cartwright
use a javascript if you can't use header.
If you are bleeding do you throw on a bandaid or do you clean the cut first?
What I'm getting at is don't simply "use" javascript because you poorly designed an application. Re-design, re-think, and if neccesary re-do.