I have a login page that contains a variable $blogid which "gets" the blog id number from a previous page. the code is $blogid = strip_tags(htmlentities(stripslashes($_GET['blog']))); After a user logs in I need to pass the user id and blog id to another page (comments_post.php) I have the following code
$_SESSION['user'] = $userrow[0];
$_SESSION['pass'] = $userpass;
die(header("Location: comments_post.php?blog=1&user=$userrow[0]"));
The redirect passes the blog id as 1 and the correct user id number (from a table). I need the statement to pass the blog id number that is defined by $blogid. if I change the code to blog=$blogid only the user id is passed. How do I get the $blogid variable to pass to comments_post.php?