Pagina profilo utente diversa per ogni utente.

giancadeejay

Utente Attivo
26 Ott 2010
224
0
16
torino
Buongiorno a tutti,
Vengo subito al mio problema...chissa' che qualcuno mi possa aiutare.
Sono alle prime armi con PHP e sto creando un sito.
Vorrei che quando un "utenteA" effettua il suo login,venga indirizzato ad un suo unico percorso e non uguale a quello dell'utenteB etc etc.
Come posso gestire questo problema considerando che come db uso mysql?
Vi posto lo script di login :
PHP:
<?PHP
require_once("./include/membersite_config.php");
 


if(!$fgmembersite->CheckLogin())
{
    $fgmembersite->RedirectToURL("login.php");
    exit;
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
      <title>Home page</title>
      <link rel="STYLESHEET" type="text/css" href="style/fg_membersite.css">
       <link rel="stylesheet" type="text/css" href="sfondosito.css">
</head>
<style type="text/css">
<!--
A{text-decoration:none}
-->
</style>
<body>
<br><br><br><br><br><br><center>
<div id='fg_membersite_content'>
<h2><font face="Pr celtic Narrow" font size="5">LA TUA PAGINA PROFILO</font></h2>
<font face="Pr celtic Narrow" font size="5">Benvenuto : </font> <?= $fgmembersite->UserFullName(); ?>!

<p><a href='change-pwd.php'><font face="Pr celtic Narrow" font size="5">Cambia password</a></font></p><br><br><br><br>

<p><a href='access-controlled.php'><font face="Pr celtic Narrow" font size="6">ENTRA NEL SITO</font></a></p>
<br><br><br>
<p><a href='logout.php'><font face="Pr celtic Narrow" font size="5">ESCI</a></font></p>
</div></center>
<?php
include("dataeora.php");
?>

Attendo risposte..Grazie a tutti
 
Cioè vuoi che venga inviato a: www.sito.it/nomeutente ?
Se è così devi utilizzare un username unico che, preso con metodo get, personalizzi la pagina in base alle tue esigenze.
 

Discussioni simili