Last time we studied the guest.php file. The specific problem also requires the reader's friends to go into practice, and need some reference books to learn, if you have no knowledge of PHP, I advise you do not want to look down, I don't have much time and space to step through the purpose and meaning of a php file. Ok, let's do edit.php this file.
-----------
edit.php
if ($Submit)
{
if ($SavePassWord = = "on")
{Setcookie ("Txtpassword", "$TxtPassword", Time () +30*24*3600);}
Else
{Setcookie ("Txtpassword");}
}
?>
Modify Message
Require ("sys.php");
function ReadValue ($tags, $tage)
{
Global $message, $long, $reply;
$StrStart =strlen (Strstr ($message, $tags))-strlen ($tags);//The starting position of the string where the tag was removed.
$StrEnd =strlen (Strstr ($message, $tage));
$len = $StrStart-$StrEnd;
$StrStart = $long-$StrStart;//start character.
$StrString =substr ($message, $StrStart, $len);
return $StrString;
}
function Save ($record)
{
Global $TxtContent, $TxtEmail, $TxtHomepage, $TxtEmail, $TxtName, $TxtFrom, $TxtReply, $REMOTE _addr, $guestfile;
$content =file ($guestfile, "R");
$space = "";
$time = Date (y year m D Day h i min);
$ip = $REMOTE _addr;
$TxtReply =stripslashes ($TxtReply);
$TxtContent =stripslashes ($TxtContent);
$TxtContent =htmlspecialchars ($TxtContent);
$TxtContent =check_strlen_long ($TxtContent);
$TxtContent =nl2br ($TxtContent);
$Wcontent = "Message content: