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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.