Go4Expert Member
15Dec2009,20:12   #11
iglow's Avatar
Quote:
Originally Posted by shabbir View Post
Redirect should be plan header if possible or else could be anything you like but the 3 countries of 3 group looks very simple. Whats the issue there.
in my php skills thats why i came here since people can code i know a bit but i do somethign wrong and this doesnt redirect as it should.
im a blackhatter but im never on the code side in a team..

can u help ?
Go4Expert Founder
16Dec2009,10:28   #12
shabbir's Avatar
Header('Location: newurl');
Go4Expert Member
16Dec2009,12:52   #13
iglow's Avatar
Quote:
Originally Posted by shabbir View Post
Header('Location: newurl');
okay but i mean how should i put those 3 inbetween? else if ?
Go4Expert Founder
16Dec2009,18:26   #14
shabbir's Avatar
I guess you need to look at basics of any programming first.

if ( condition )
{
/// Redirect to country 1
}
else if( condition )
{
/// Redirect to country 2
}
else if ( condition )
{
/// Redirect to country 3
}
Go4Expert Member
16Dec2009,18:31   #15
iglow's Avatar
yeah i know the else if, but i was wondering if its possible to make it shorter than that without so many else ifs [like i can once redirect each of 50 countries to 50 places].
as i said im not a programmer, i have other skillz. just want to learn a bit [a bit not all] but not plain learning but on something that i could use - if u catch my drift. better to learn stuff while doing it than just reading how it works without examples.
Contributor
16Dec2009,18:40   #16
urstop's Avatar
If you do not want all those IF ELSE blocks, then put the entries in a database table and you can do a SELECT to get the required URL for a given country.