hey all, i am using $toplinks and i get a Unexpected T_string the problem lies in the
$toplinks = '<a href="join_form.php">Register</a> • <?php include 'login.php'; ?>';
part of the code below. how can i make that php include work for this toplinks?
<?php
session_start(); // Must start session first thing
/*
Created By Adam Khoury @ www.flashbuilding.com
-----------------------June 20, 2008-----------------------
*/
// See if they are a logged in member by checking Session data
$toplinks = "";
if (isset($_SESSION['id'])) {
// Put stored session variables into local php variable
$userid = $_SESSION['id'];
$username = $_SESSION['username'];
$toplinks = '<a href="member_profile.php?id=' . $userid . '">' . $username . '</a> •
<a href="member_account.php">Account</a> •
<a href="logout.php">Log Out</a>';
} else {
$toplinks = '<a href="join_form.php">Register</a> • <?php include 'login.php'; ?>';
}