redirec

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nuttynibbles1984
Forum Newbie
Posts: 1
Joined: Sun Aug 14, 2005 12:09 am

redirec

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

why can't you use header() ? Is it because of something like this?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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>
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
Post Reply