09-11-2007, 07:57 PM
I have modified the login_box.php file to display the users email address once they have logged in. What I would LIKE to do is display some of the other information from the mm_users table.
Here is the code that displays the users email address under an image file, with available options for the logged in user:
Here is the code that displays the users email address under an image file, with available options for the logged in user:
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
// User Logged In --> Show Logged in Table
////////////////////////////////////////////////////////////////////////////////////////////////////
if($_SESSION[email_address] && $_SESSION[pass]) {
echo "
<a href=\"request.php\"><img src=\"images/reqserv.gif\" border=\"0\" /></a>
<div align=\"center\">
$_SESSION[email_address]
</div>
<ul>
<li><a href=\"php_mm/control_panel.php\">My Account</a></li>
<li><a href=\"members/mysubs.php?u_id=$_COOKIE[email_address]\">My Submissions</a>
</li>
<li><a href=\"php_mm/control_panel.php?logoff=1&redirect=\">Log Off</a></li>
</ul>
";
}
Any tips on how I can either create new cookies when the user logs in using other fields in the mm_user table, or how I can use the ID field as the URL parameter being passed on the "My Submissions" linked - rather than the email_address, would be greatly appreciated.
By the way, I am quite pleased with how easy this program integrated into my application. Thanks for your continued guidance.
