線上書籍

Home

[1032]PHP入門

<!DOCTYPE html> <html lang="zh-TW"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>編輯新聞</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> </head> <body> <div class="container"> <h1>編輯新聞</h1> <div class="row"> <div class="col-md-9"> <!-- 表單 action指定變數欲送至的目的地,method指定變數傳送方式 --> <form action="post.php" method="post" role="form"> <div class="form-group"> <input type="text" name="news_title" placeholder="請輸入新聞標題" class="form-control" value="[var.news_title]"> </div> <div class="form-group"> <textarea name="news_content" style="height:300px;" placeholder="請輸入新聞內容" class="form-control">[var.news_content]</textarea> </div> <div class="row"> <div class="col-md-3"> </div> <div class="col-md-3"> [var.ip] </div> <div class="col-md-3"> <div class="form-group"> <input type="password" name="password" class="form-control" placeholder="請輸入密碼"> </div> </div> <div class="col-md-3"> <input type="hidden" name="sn" value="[var.sn]"> <input type="hidden" name="op" value="[var.next_op]"> <input type="submit" value="儲存新聞" class="btn btn-info btn-block"> </div> </div> [var.passwd_error] </form> </div> <div class="col-md-3"> <a href="index.php" class="btn btn-success btn-block">新聞列表</a> <img src="http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=[var.url]" alt="QR Code"> [var.url] </div> </div> </div> </body> </html>