message_update.php

来自「php模块设计。。。里面的模块很有学习价值」· PHP 代码 · 共 63 行

PHP
63
字号
<?
	include("db_conn.php");
	include("db_func.php");

	include("idcheck.php");

	$SQLStr = "SELECT * FROM message WHERE m_id='$m_id' AND m_pass='$pass'";
	$res = db_query("$SQLStr");
	$row = db_fetch_array($res);
?>
<!------ 传送更新留言数据的参数 upd 给留言处理功能------>
<form name="form1" method="post" action="message_process.php?check=upd">
  <table width="481" border="1" cellpadding="0" cellspacing="0" align="center">
    <tr>
      <td>
        <table width="480" border="0" align="center" cellspacing="1" bordercolor="#000099" cellpadding="1">
          <tr> 
            <td height="10" colspan="2" bgcolor="#006699">
              <div align="center"><font color="#EEEEEE" size="4">访问者留言板</font></div>
            </td>
          </tr>
          <tr> 
            <td height="30" bgcolor="#99CCFF" align="center">留言人</td>
            <td height="30" bgcolor="#99CCFF"> 
              <input type="text" name="user" size="20" value="<?=$row['m_user']?>" disabled>
            </td>
          </tr>
          <tr> 
            <td height="23" align="center">e-mail</td>
            <td height="23"> 
              <input type="text" name="email" size="36" value="<?=$row['m_mail']?>">
            </td>
          </tr>
          <tr> 
            <td height="23" bgcolor="#99CCFF" align="center">留言主题</td>
            <td height="23" bgcolor="#99CCFF"> 
              <input type="text" name="title" size="36" value="<?=$row['m_title']?>">
            </td>
          </tr>
          <tr> 
            <td height="80" align="center">留言内容</td>
            <td height="80"> 
              <p> 
                <textarea name="content" rows="10" cols="35"><?=$row['m_content']?></textarea>
                <br>
              </p>
              </td>
          </tr>
          <tr> 
            <td height="25" colspan="2" bgcolor="#006699"> 
              <div align="center"> 
                <input type="reset" name="Reset" value="清除重填">
                <input type="submit" name="Submit" value="送出留言">
              </div>
            </td>
          </tr>
        </table>
	<input type="hidden" name="m_id" value="<?=$row['m_id']?>">
      </td>
    </tr>
  </table>
  </form>

⌨️ 快捷键说明

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