質問編集履歴
1
HTML jQuery 一つのファイルにまとめました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,8 +27,8 @@
|
|
27
27
|
}
|
28
28
|
?>
|
29
29
|
```
|
30
|
-
```
|
30
|
+
```HTMLjQuery
|
31
|
-
<form id="form" action="" method="POST">
|
31
|
+
<form id="form" action="" method="POST">
|
32
32
|
<div class="form-content mt-5">
|
33
33
|
<div class="form-left ">
|
34
34
|
<div class="form-group">
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<div class="form-right">
|
50
50
|
<div class="form-group">
|
51
51
|
<textarea class="form-control" name="message" placeholder="お問い合わせ"
|
52
|
-
|
52
|
+
rows="10"><?php echo htmlspecialchars($_POST['message'], ENT_QUOTES)?></textarea>
|
53
53
|
<?php if ($error['message'] === 'blank') :?>
|
54
54
|
<p class="text-danger">* 本文を入力して下さい</p>
|
55
55
|
<?php endif; ?>
|
@@ -57,10 +57,13 @@
|
|
57
57
|
</div>
|
58
58
|
</div>
|
59
59
|
<input name="position" type="hidden" value="0">
|
60
|
-
<input type="
|
60
|
+
<input type="submit" name="submit" value="上記の内容で送信する" class="text-center " id="button">
|
61
61
|
</form>
|
62
|
-
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
63
|
-
|
66
|
+
<script>
|
64
67
|
$(document).ready(function() {
|
65
68
|
window.onload = function () {
|
66
69
|
$(window).scrollTop(<?php echo $position; ?>);}
|
@@ -72,5 +75,6 @@
|
|
72
75
|
|
73
76
|
("#form").submit();
|
74
77
|
});
|
75
|
-
});
|
78
|
+
});
|
79
|
+
</script>
|
76
80
|
```
|