国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP develops simple news release system news release front-end page

In the previous section we created the database and tables and did some preparatory work. In this section we will make a simple adding news page

Adding news is to add data to the database. And displayed on the news list page later.

1604.png

The administrator fills in the content of the news in the form, including: title, author, and content.

Use the <form> form<input> text box to enter content.

The content in <textarea></textarea> in the page is used to get the content of the content field. Because there is too much content in this field, it can only Use this label.

The following is the HTML code of a simple news release page:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新聞發(fā)布頁面</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;">新聞發(fā)布頁面</h3>
        標(biāo) 題:<input type="text" name="title" style="width:200px"/>
        <br/><br/>
        作 者: <input type="text" name="author" style="width:200px"/>
        <br/><br/>
        <span>內(nèi) 容:</span>
        <textarea cols=35 rows=8 name="content"></textarea><br/><br/>
        <input type="submit" value="發(fā)布新聞"/>
    </form>
</body>
</html>

You can name this page: new.php

Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>新聞發(fā)布頁面</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;">新聞發(fā)布頁面</h3> 標(biāo) 題:<input type="text" name="title" style="width:200px"/> <br/><br/> 作 者: <input type="text" name="author" style="width:200px"/> <br/><br/> <span>內(nèi) 容:</span> <textarea cols=35 rows=8 name="content"></textarea><br/><br/> <input type="submit" value="發(fā)布新聞"/> </form> </body> </html>
submitReset Code