Hi there,
*little heads up: English isn't my native language, so excuse me for any mistakes in spelling etc.*
I've got a register/login script with activation mail, I secure my pages with this bit of code:
}
if (!$HTTP_SESSION_VARS["ingelogd"])
{
header("Location: login.php");
}
Because if someone logs in, the session is made:
// bekijk of de gegevens juist zijn
if (mysql_num_rows($res) >= 1)
{
// registreer sessie (of cookie)
$ingelogd = mysql_result($res, 0);
session_register(ingelogd);
// setcookie("ingelogd", "$ingelogd", time() + 1 * 86400);
echo "<p style=\"font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000;\">
U bent succesvol ingelogd.</p>";
echo "<p style=\"font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000;\">
Klik hier om <a href=\"home.php\">verder</a> te gaan.</p>";
}
My question: When someone registered, they entered their 'real' name, which is then placed into the database in the same row
as the username, password etc. I would like to state on the homepage which is secured 'Welcome 'Name'!' I do I get this 'Name' value
out of the database and into my page?
Thanks in advance!
Sander