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
sarbas
Forum Commoner
Posts: 64 Joined: Thu Jan 04, 2007 5:51 am
Post
by sarbas » Sat Jan 27, 2007 1:12 am
hai...
i want to redirect two pages from a php page using if... else.... condition is it possible?
if(...)
{
...
...example.php
}
else
{
...
example1.php
}
Thanks with regards
Sarbas
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Sat Jan 27, 2007 1:19 am
yes, it's possible. Why shouldn't it?
sarbas
Forum Commoner
Posts: 64 Joined: Thu Jan 04, 2007 5:51 am
Post
by sarbas » Sat Jan 27, 2007 1:24 am
hi volka,
i got some error while using that syntax.Can you provide me a correct syntax.
Thanks with Regards,
Sarbas
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Sat Jan 27, 2007 1:29 am
Code: Select all
if (...) {
header(...);
}
else {
header(...);
}
sarbas
Forum Commoner
Posts: 64 Joined: Thu Jan 04, 2007 5:51 am
Post
by sarbas » Sat Jan 27, 2007 1:48 am
Hi volka,
Thanks for your valuble reply. I'm new to php.
Thanks With regards
Sarbas
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Jan 27, 2007 9:22 am
Duplicating your threads is NOT allowed.