首页 >社区问答列表 >发布一直不成功

发布一直不成功

如果在数据库中插入新闻则可以在列表页显示和修改,但是和案例中代码一样却一直不能在页面发布,请问是什么问题?

  • 天蓬老师
  • 天蓬老师    2018-11-27 21:38:531楼

    请把出错信息发出来看看,还有源代码,  这样的怎么回答呢?

    +0添加回复

  • 回复

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>新闻发布页面</title> <style type="text/css"> span{display:inline-block; float: left; width: 55px} input[type="submit"]{margin-left: 30%;} </style> </head> <body bgcolor="#ccc"> <form name="article" method="post" action="publish.php" style=""> <h3 style="margin-left: 60px;">新闻发布页面</h3> 标 题:<input type="text" name="title" style="width:200px"/> <br/><br/> 作 者: <input type="text" name="author" style="width:200px"/> <br/><br/> <span>内 容:</span> <textarea cols=35 rows=8 name="content"></textarea><br/><br/> <input type="submit" value="发布新闻"/> </form> </body> </html>

    高先生  作者 · 2018-11-30 14:23:21
    回复

    new.php和案例中的一样,没有修改

    高先生  作者 · 2018-11-30 14:24:03
    回复

    可以留个邮箱吗?我把源码发给你帮我看一下,

    高先生  作者 · 2018-11-30 14:24:59
    回复