質問編集履歴

2

再度phpタグ内修正

2016/03/30 07:21

投稿

singlestroke
singlestroke

スコア68

test CHANGED
File without changes
test CHANGED
@@ -160,7 +160,7 @@
160
160
 
161
161
  // 以下で入力チェック及び日付の存在をチェック
162
162
 
163
- if ( empty($_POST["birthyear"]) || empty($_POST["birthmonth"]) || empty($_POST["birthday"]) ) {
163
+ if ( empty($birthyear) || empty($birthmonth) || empty($birthday) ) {
164
164
 
165
165
  $error["birth"] = "生年月日を選択してください。";
166
166
 
@@ -176,13 +176,15 @@
176
176
 
177
177
  ```php
178
178
 
179
+ <div class="form-inline form-group">
180
+
181
+ <label for="birthyear" class="col-sm-2 control-label">生年月日</label>
182
+
179
- <div class="form-group">
183
+ <div class="col-sm-6">
180
-
181
- <label class="col-sm-2 control-label" for="mail">メールアドレス</label>
184
+
182
-
183
- <div class="col-sm-5"><?php print "<p class=\"text-danger\">".$error["mail"]."</p>"; ?>
185
+ <?php print "<p class=\"text-danger\">".$error["birth"]."</p>"; ?>
184
-
186
+
185
- <?php print $mail; ?>
187
+ <?php print $birth; ?>
186
188
 
187
189
  </div>
188
190
 

1

php前後のHTMLも追記

2016/03/30 07:21

投稿

singlestroke
singlestroke

スコア68

test CHANGED
File without changes
test CHANGED
@@ -176,7 +176,17 @@
176
176
 
177
177
  ```php
178
178
 
179
+ <div class="form-group">
180
+
181
+ <label class="col-sm-2 control-label" for="mail">メールアドレス</label>
182
+
179
- <?php print "<p class=\"text-danger\">".$error["birth"]."</p>"; ?>
183
+ <div class="col-sm-5"><?php print "<p class=\"text-danger\">".$error["mail"]."</p>"; ?>
184
+
185
+ <?php print $mail; ?>
186
+
187
+ </div>
188
+
189
+ </div>
180
190
 
181
191
  ```
182
192