Jump to content

[SOLVED] header() ?


Clinton

Recommended Posts

I'm trying to redirect my members to a page based upon what type of member they are. The variable echos just fine but no matter what I do I cannot get it to separate from the ' or the " or the \ or the / or the . or... well... you get my point... hopefully. How do I do this?

 

if($row['active'] == NULL)
			{
				$_SESSION['user_id'] = $row['username'];
				$_SESSION['access_type'] = $row['accesstype'];
				$at = $row['accesstype'];
				$_SESSION['logged_in'] = TRUE;
				header("Location: $at'member.php'");

			}else {

Link to comment
https://forums.phpfreaks.com/topic/139263-solved-header/
Share on other sites

               $_SESSION['user_id'] = $row['username'];
               $_SESSION['access_type'] = $row['accesstype'];
               $at = $row['accesstype'];
               $_SESSION['logged_in'] = TRUE;
               header("Location: ".$at."member.php");

is that what you need?

Link to comment
https://forums.phpfreaks.com/topic/139263-solved-header/#findComment-728454
Share on other sites

header("Location: ".$at."member.php");

 

That's exactly what I needed. I was pretty sure it needed the concoc... however you spell it I just couldn't figure out the right combination. Thank you. All $at is, is a variable that just determines what type of member they are. Just a letter.

Link to comment
https://forums.phpfreaks.com/topic/139263-solved-header/#findComment-728459
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.