php开发留言板之创建提交页面

创建留言板提交页面

创建文件

add.html

<!DOCTYPE html>
 <html lang="en">
 <head>
     <meta charset="UTF-8">
     <link href="css.css" rel="stylesheet" type="text/css">
     <title>Title</title>
     <?php include ("add.php")?>
 
 </head><body>
 <b><a href="add.php">添加留言</a></b>
 <hr size=1>
 <form action="add.php" method="post" >
     用户:<input type="text" size="10" name="user"/><br>
     标题:<input type="text" name="title" /><br>
     内容:<textarea name="content"></textarea><br>
     <input type="submit" name="submit" value="发布留言" />
 </form>
 </body>
 </html>

css.css文件

td {
    line-height: 16pt;
    font-size: 10pt;
    font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
 }
 a:link {
    text-decoration: none;
    color: #000000;
 }
 body {
    font-size: 10pt;
    line-height: 13pt;
    background-color: #ECF5FF;
 }
 
 textarea {
    font-size: 8pt;
    font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
    border: 1px solid #999999;
    padding: 5px;
 }
 form {
    margin: 0px;
    padding: 0px;
 }
 .textdrow {
    color:#666666;
    filter: DropShadow(Color=white, OffX=1, OffY=1, Positive=1);
 }
 .p {
    text-indent: 24px;
 }

html页面中引入了conn文件和css文件,分别用来连接数据库和对页面进行布局

QQ截图20161025133446.png 


QQ截图20161025133814.png

继续学习
||
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="css.css" rel="stylesheet" type="text/css"> <title>Title</title> <?php include ("add.php")?> </head><body> <b><a href="add.php">添加留言</a></b> <hr size=1> <form action="add.php" method="post" > 用户:<input type="text" size="10" name="user"/><br> 标题:<input type="text" name="title" /><br> 内容:<textarea name="content">
提交重置代码