feedback.php.txt

来自「《PHP专业项目实例开发》源代码」· 文本 代码 · 共 66 行

TXT
66
字号
          <html>
          <head>
          <title>Feedback Page</title>
          </head>
          <body bgcolor="#FFFFFF" text="#000000">

      <?php
          $message="";

// --- Subject of the mail.

          $mailsubject ="Feedback From Customer";

// --- Body of the mail.

          $mailbody = "The user entered the following rating: \n";

          if (isset($q1))
          {
           $mailbody.="The user rated the Web site as ".$q1 ."\n";
           }

          if (isset($q2))
           {
           $mailbody.= "The user rated the usefulness as ".$q2."\n";
           }

          if (isset($q3))
          {
           $mailbody.= "The user rated the visual appearance as ".$q3."\n";
           }

          if (isset($q4))
           {
           $mailbody.="The user rated ease of navigation as". $q4."\n";
           }

          $mailbody.="Have a nice day";

// --- A mail is send to the Bukbuz, Inc. administrator.

          $email="admin@bukbuz.com";

// --- Result stored in the $result variable.

          $result = mail($email,$mailsubject,$mailbody);
          if ($result)
          {

// --- If mail is delivered successfully.

          echo "<p><h1><center>E-mail sent to site administrator.</center></h1></p>";
          }
          else
          {

// --- If the e-mail is not sent.

          echo "<p><b>E-mail could not be sent.</b></p>";
          }
     ?>

          <h1><center>Thank you for your time ! </center></h1>
          </body>
          </html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?