Page 1 of 1

Page Redirect

Posted: Sat Jan 27, 2007 1:12 am
by sarbas
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 :!:

Posted: Sat Jan 27, 2007 1:19 am
by volka
yes, it's possible. Why shouldn't it?

Page Redirect

Posted: Sat Jan 27, 2007 1:24 am
by sarbas
hi volka,
i got some error while using that syntax.Can you provide me a correct syntax.

Thanks with Regards,
Sarbas :)

Posted: Sat Jan 27, 2007 1:29 am
by volka

Code: Select all

if (...) {
	header(...);
}
else {
	header(...);
}

Page Redirect

Posted: Sat Jan 27, 2007 1:48 am
by sarbas
Hi volka,

Thanks for your valuble reply. I'm new to php.

Thanks With regards
Sarbas :D

Posted: Sat Jan 27, 2007 9:22 am
by feyd
Duplicating your threads is NOT allowed.