ciao a tutti
cerco di installare un tagbord semplicissimo. praticamente pero vorrei che il nome dello scrittore venga inciso automaticamente nel messaggio quando un utente rilascia un post è possibile la cosa?? ovviamente precedentemente l'utente ha fatto una registrazione al sito.. non riesco a combiare l'user del sito con l'imput del tagbord...
Codice PHP:
<?php
// Includo le variabili importanti
include ("config.php");
include (
"vars.php");
include (
"membersonly.inc.php");

// Conto i messaggi, un "</tr>" vale un messaggio
$cont implode ("",file($file));
$gets substr_count ($cont,"</tr>");

// Costruisco il codice HTML
echo ("
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />
<title>
$site (Bc - TagBoard $vers)</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"
$dcss\" />
</head>
<body>



<div align=\"center\">
<table cellspacing=\"1\" cellpadding=\"4\">
<tr>
<td class=\"toptd\" width=\"150\" height=\"20\">
Messaggi: [b]
$gets[/b]
</td>
</tr>
"
);

// Includo i messaggi
include ($file);

// Footer
echo ("
<form method=\"post\" action=\"post.php\">
<tr>
<td class=\"bottd\" width=\"150\" valign=\"top\">
<div align=\"center\">
[b]Scrivi[/b]

 

Nome:


<input name=\"name\" size=\"20\" maxlength=\"90\">


Messaggio:


<input type=\"text\" name=\"mess\" size=\"20\" maxlength=\"90\">

 

<input type=\"submit\" name=\"send\" value=\"invia\" /> <input type=\"reset\" value=\"reset\" />
</td>
</tr>
</form>
</table>
</div>



</body>
</html>
"
);

?>
questa è la parte di index del tagbord e questo sarebbe la riga da inserire

Codice PHP:
<?PHP echo ($user_currently_loged); ?>
questa riga fa visualizzare il nome del utente dopo il login del sito. io vorrei che il nome del utente venga salvato direttamente sul txt del tagbord sostutuento quendi l'imput /name/
inoltre dovrei includere un documento situato in un'altra cartella posso quendi specificare il path del file es. include ("http://miosito.com/home/...");???