0

Hi i have several user types i.e female, male couple etc and when they register each group goes to there own page for profile setup

but when they login they go to one standard profile page that came with script how would i redirect them to there own profile page that goes with there group that they sign up into

heres code to header them to profile setup page that ive already done which works

if($_POST['gender']=='Couple MF')
{
     header('location:registration2MF.php');

}
else if($_POST['gender']=='Couple MM')
{
     header('location:registration2MM.php');
}
else if($_POST['gender']=='Couple FF')
{
     header('location:registration2FF.php');
}
else if($_POST['gender']=='Male')
{
     header('location:registration2M.php');
}
else if($_POST['gender']=='Female')
{
     header('location:registration2F.php');
}
else if($_POST['gender']=='TV/TS')
{
     header('location:registration2TT.php');
}
        exit;

many thanks in advance x

Edited by janicemurby

2
Contributors
1
Reply
26
Views
1 Month
Discussion Span
Last Post by broj1
0

You should do it in a similar fashion. I presume the information about the gender is stored in a database for each user. When they login you read this information and redirect based on it. Something like:

if($row['gender']=='Couple MF')
{
     header('location:landingpage2MF.php');
}
else if($row['gender']=='Couple MM')
{
     header('location:landingpage2MM.php');
}
else if...
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.