// 行進用フォーム要素の表示 if (isset($_POST['update'])) { // 更新対象の値を取得 $dbGoodsId = $_POST['id']; $dbGoodsName = $dbGoods->GoodsNameForUpdate($_POST['id']); $Price = $dbGoods->PriceForUpdate($_POST['id']); // クラスを記述することで表示/非表示を設定 $entryCss = "class='hideArea'"; $updateCss = ""; } else { $entryCss = ""; $updateCss = "class='hideArea'"; } // 削除処理 if (isset($_POST['delete'])) { $dbGoods->DeleteGoods($_POST['id']); } // 新規登録処理 if (isset($_POST['submitEntry'])) { $dbGoods->InsertGoods(); } // テーブルデータの一覧表示 $data = $dbGoods->SelectGoodsAll(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>売上管理システム</title> <link rel="stylesheet" type="text/css" href="../Chapter7/css/style.css" /> <script type="text/javascript">