質問編集履歴

1

HTMLコードの追記、説明文の補足

2017/10/22 03:57

投稿

rumi
rumi

スコア46

test CHANGED
File without changes
test CHANGED
@@ -2,11 +2,15 @@
2
2
 
3
3
 
4
4
 
5
+ 色々試したところ、description以外はDBに保存できる様ですが、descriptionだけnullになってしまう感じが、問題のようです。(descriptionはtextareaでメッセージを入力する部分です)
6
+
5
- 原因がお分かりの方はいらっしゃでしょうか?
7
+ HTML側も下記に記載しております、問題点がお分かりかたご指摘ただけると幸
6
8
 
7
9
 
8
10
 
11
+
12
+
9
- ```ここに言語を入力
13
+ ```PHP
10
14
 
11
15
  public function sendMessage(){
12
16
 
@@ -85,3 +89,49 @@
85
89
  }
86
90
 
87
91
  ```
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ ```HTML
100
+
101
+
102
+
103
+ <form class="chat-form" id="sendMsg">
104
+
105
+ <div class="form-group">
106
+
107
+ <textarea name="message" class="form-control" rows="4" id="description"
108
+
109
+ name="description"
110
+
111
+ placeholder="メッセージを入力..."
112
+
113
+ data-validation="validateDescription"
114
+
115
+ data-validation-error-msg="Please check description carefully."></textarea>
116
+
117
+ </div>
118
+
119
+ <div class="form-group text-right">
120
+
121
+ <input type="hidden" name="action" value="method"/>
122
+
123
+ <input type="hidden" name="method" value="sendMessage"/>
124
+
125
+ <button type="submit" class="btn btn-link" data-ele="sendMessage">
126
+
127
+ 送信
128
+
129
+ </button>
130
+
131
+ </div>
132
+
133
+ </form>
134
+
135
+
136
+
137
+ ```