【php开源代码栏目提醒】:网学会员在php开源代码频道为大家收集整理了yuanxi_edit.php提供大家参考,希望对大家有所帮助!
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>院系编辑网页</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="yuanxi_editsave.php">
<div align="center"> 院系编辑:
<?php
require_once("conn.php"); //包含数据库连接文件。
$sql = "select * from tb_yuanxi where id = " . $_GET['id'];
$rs= mysql_query($
sql) ;
$row =
mysql_fetch_array($rs);
?>
<input type="text" name="yuanxi" id="yuanxi" value="<?php echo $row['yuanxi']; ?>">
<input type="hidden" name="id" name="id"
value="<?php echo $row['id']; ?>">
<?php mysql_close(); ?>
<label>
<input type="submit" name="button" id="button" value="提交">
</label></div>
</form>
</body>
</html>