⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liuyan.php3

📁 网络同学录程序
💻 PHP3
字号:
<?
/*大家好,我是豆腐
提供原码是我的一贯原则,但是希望大家能够尊重豆腐的工作
希望大家在使用的过程中随时和我联系 roboo@21cn.com
您可以随意修改代码,但是请保留我的注释(如果不保留,我也没办法)
如果您觉得这个程序对您有或多或少的帮助,豆腐希望能够得到您的鼓励
您的鼓励和支持,是我们工作的最大动力
    .  =======
   / \| O   O |
   \ /  \v_'/
    #   _| |_
   (#) (     )
    #\//|* *|\\
    #\/(  *  )/       //豆腐制作,都是精品
    #   =====
    #   (\ /)
    #   || ||
   .#---'| |----.
    #----' -----'
    //哲人说:用我的心换你的心,我们便拥有两颗心
*/
?>
<?
  include("conn.php3");
  include("db.php3");
  $conn=openconn();
  session_start();
  $userid=$session_userid;
?>
<?
  if($cmdDo!=""){
     //保存留言
     include("userfunc.php3");
     $RegTime=$TTime=date("Y-n-d"). " " . date("H:i:s");
     $SQL="Insert into " . $DataBaseOwerName . ".Class_ClassLYB(CLassID,DateAndTime,userid,title,Content) values(";
     $SQL=$SQL . "'" . $classid . "','" . $RegTime . "','" . $userid . "','" . ReplaceSql($txtTitle) . "','" . ReplaceSql($txtContent) . "')";
     echo $SQL;
     $stmt=opensql($conn,$SQL);
  }
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="class.css">
<title>我要留言</title>
</HEAD>
<BODY>
  <form action=<? echo $PHP_SELF ?>?classid=<? echo $classid ?>  method="post">
    <table border=0>
      <tr>
        <td class=keyItem> 留言主题:</td>
        <td><input type=text name="txtTitle" size=20 class=editface></td>
       </tr>
       <tr>
        <td> 留言内容:</td>
        <td><TEXTAREA name="txtContent" cols="20" rows="5"></TEXTAREA></td>
       </tr>
     </table>
     <br>
     <input type=submit name="cmdDo" value="确定" class=buttonface>
  </form>
</BODY>
</html>

⌨️ 快捷键说明

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