为了账号安全,请及时绑定邮箱和手机立即绑定

发个页面共享下

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>文章添加页面</title>
<style>
    *{
        margin:0;
        padding:0;
    }

    body{
        font-size:12px;
    }

     li{
          list-style:none;
     }

     #wrap{
          width:800px;
          margin: 0 auto;
          padding: 20px;
     }

     #wrap h1{
          color: #08b;
     }

     #wrap .item{
          padding: 20px;
          margin-bottom: 20px;
          border: 1px dotted #08b;
     }

     #wrap .item h2 {
          font-size: 16px;
          font-weight: bold;
          border-bottom: 2px solid #08b;
          margin-bottom: 10px;
     }

     #menu{
          position: fixed;
          top: 100px;
          left: 50%;
          margin-left: 400px;
          width: 80px;
     }

     #menu ul li a{
          display: block;
          margin: 5px 0;
          font-size: 14px;
          font-weight: bold;
          color: #333;
          width: 80px;
          height: 50px;
          line-height: 50px;
          text-decoration: none;
          text-align: center;
     }

     #menu ul li a:hover,
     #menu ul li a.current {
          color: #fff;
          background: #08b;
     }
</style>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
<script>
     $(document).ready(function(e) {

     });

</script>
</head>

<body>
<div id="menu">
    <ul>
        <li><a href="article.add.php" class="current">发布文章</a></li>
        <li><a href="article.manage.php">管理文章</a></li>
    </ul>
</div>
<div id="wrap">
    <h1>文章添加页面</h1>
    <div class="item">
        <h2>发布文章</h2>
        <form id="form1" name="form1" method="post" action="article.add.handle.php">
        <table>
        	<tr>
            	<td>标题:</td>
            	<td><input type="text" name="title" id="title"/></td>
        	</tr>
        	<tr>
            	<td>作者:</td>
            	<td><input type="text" name="author" id="author"/></td>
        	</tr>
        	<tr>
            	<td>简介:</td>
            	<td><textarea name="description" rows="5" cols="60" id="description"></textarea></td>
        	</tr>
        	<tr>
            	<td>内容:</td>
            	<td><textarea name="content" rows="15" cols="60" id="content"></textarea></td>
        	</tr>
        	<tr>
        		<td colspan="2" align="right"><input type="submit" name="button" value="提交" id="submit"/></td>
        	</tr>
        </table>
        </form>
    </div>
</div>
</body>
</html>
<?php

发个文章添加页面,如果有需要的同学不想自己打的

正在回答

1 回答

很棒!

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
PHP与MySQL关系大揭秘
  • 参与学习       72509    人
  • 解答问题       978    个

让我们一起走上探秘之旅,找寻php和mysql恋爱的真谛

进入课程

发个页面共享下

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号