PHP + TEXT message book (2 ). Last time we studied guest. php file. the specific problem also requires readers and friends to go deep into practice, and requires some tool books to learn. if you have no knowledge of php, I believe that we have studied guest last time. php file. the specific problem also requires readers and friends to practice it in depth, and requires some tool books to learn. if you have no knowledge of php, I advise you not to read it, I don't have much time and space to explore the usage and significance of a php file one by one. okay. now let's edit. php 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); // remove the starting position of the string where the variable is located.
$ 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, m, d, H, I );
$ Ip = $ REMOTE_ADDR;
$ TxtReply = StripSlashes ($ TxtReply );
$ TxtContent = StripSlashes ($ TxtContent );
$ TxtContent = htmlspecialchars ($ TxtContent );
$ TxtContent = check_strlen_long ($ TxtContent );
$ TxtContent = nl2br ($ TxtContent );
$ Wcontent ="Message content: