質問編集履歴

1

html

2020/11/25 06:22

投稿

codemanvs
codemanvs

スコア45

test CHANGED
File without changes
test CHANGED
@@ -13,3 +13,381 @@
13
13
 
14
14
 
15
15
  アドバイス頂ける方、よろしくお願い申し上げます。
16
+
17
+
18
+
19
+ ```HTML
20
+
21
+ <form action="php/mailform.php" method="post" id="mail_form">
22
+
23
+ <div class="form-container">
24
+
25
+ <div class="input-block">
26
+
27
+ <label class="label" for="rendou">お名前<span class="required">必須</span><span class="gray-text-sp">例)東京 太郎</span></label><input type="text" id="name_1" name="name_1" value="" /><span class="gray-text">例)東京 太郎</span>
28
+
29
+ </div>
30
+
31
+ <div class="input-block">
32
+
33
+ <label class="label" for="rendou">ふりがな<span class="required">必須</span><span class="gray-text-sp">例)とうきょう たろう</span></label><input type="text" id="read_1" name="read_1" value="" /> <span class="gray-text">例)とうきょう たろう</span>
34
+
35
+ </div>
36
+
37
+ <div class="input-block">
38
+
39
+ <label class="label" for="rendou">年齢<span class="required">必須</span></label>
40
+
41
+ <select name="age">
42
+
43
+ <option>指定なし</option>
44
+
45
+ <option value="under18">18歳未満</option>
46
+
47
+ <option value="18">18</option>
48
+
49
+ <option value="19">19</option>
50
+
51
+ <option value="20">20</option>
52
+
53
+ <option value="21">21</option>
54
+
55
+ <option value="22">22</option>
56
+
57
+ <option value="23">23</option>
58
+
59
+ <option value="24">24</option>
60
+
61
+ <option value="25">25</option>
62
+
63
+ <option value="26">26</option>
64
+
65
+ <option value="27">27</option>
66
+
67
+ <option value="28">28</option>
68
+
69
+ <option value="29">29</option>
70
+
71
+ <option value="30">30</option>
72
+
73
+ <option value="31">31</option>
74
+
75
+ <option value="32">32</option>
76
+
77
+ <option value="33">33</option>
78
+
79
+ <option value="34">34</option>
80
+
81
+ <option value="35">35</option>
82
+
83
+ <option value="36">36</option>
84
+
85
+ <option value="37">37</option>
86
+
87
+ <option value="38">38</option>
88
+
89
+ <option value="39">39</option>
90
+
91
+ <option value="40">40歳以上</option>
92
+
93
+ </select>
94
+
95
+ </div>
96
+
97
+
98
+
99
+ <div class="input-block">
100
+
101
+ <label class="label">住所<span class="required">必須</span></label><input type="text" id="address" name="address" value="" />
102
+
103
+ </div>
104
+
105
+
106
+
107
+
108
+
109
+ <div class="input-block">
110
+
111
+ <label class="label" for="rendou">現在の状況<span class="required">必須</span></label>
112
+
113
+ <select name="age">
114
+
115
+ <option>指定なし</option>
116
+
117
+ <option value="working">在職中</option>
118
+
119
+ <option value="left">離職中</option>
120
+
121
+ <option value="parttime">アルバイト</option>
122
+
123
+ </select>
124
+
125
+ </div>
126
+
127
+
128
+
129
+ <div class="input-block">
130
+
131
+ <label class="label">メールアドレス<span class="required">必須</span><span class="gray-text-sp">例)mail@ドメイン名</span></label><input type="email" id="mail_address_confirm" name="mail_address_confirm" value="" /><span class="gray-text">例)mail@ドメイン名</span>
132
+
133
+ </div>
134
+
135
+
136
+
137
+ <div class="input-block">
138
+
139
+ <label class="label">電話番号<span class="required">必須</span><span class="gray-text-sp">例)080-0000-0000</span></label><input type="tel" id="phone" name="phone" value="" /><span class="gray-text">例)080-0000-0000</span>
140
+
141
+ </div>
142
+
143
+
144
+
145
+ <div id="last-input-block" class="input-block">
146
+
147
+ <label class="label">面談希望日<span class="required">必須</span></label>
148
+
149
+ <div class="date-wrap">
150
+
151
+ <div class="date-block">
152
+
153
+ <select id="date" name="month">
154
+
155
+ <option value="month">1</option>
156
+
157
+ <option value="month">2</option>
158
+
159
+ <option value="month">3</option>
160
+
161
+ <option value="month">4</option>
162
+
163
+ <option value="month">5</option>
164
+
165
+ <option value="month">6</option>
166
+
167
+ <option value="month">7</option>
168
+
169
+ <option value="month">8</option>
170
+
171
+ <option value="month">9</option>
172
+
173
+ <option value="month">10</option>
174
+
175
+ <option value="month">11</option>
176
+
177
+ <option value="month">12</option>
178
+
179
+ </select>
180
+
181
+ <p class="date-month">月</p>
182
+
183
+ </div>
184
+
185
+
186
+
187
+ <div class="date-block">
188
+
189
+ <select id="date" name="day">
190
+
191
+ <option value="day">1</option>
192
+
193
+ <option value="day">2</option>
194
+
195
+ <option value="day">3</option>
196
+
197
+ <option value="day">4</option>
198
+
199
+ <option value="day">5</option>
200
+
201
+ <option value="day">6</option>
202
+
203
+ <option value="day">7</option>
204
+
205
+ <option value="day">8</option>
206
+
207
+ <option value="day">9</option>
208
+
209
+ <option value="day">10</option>
210
+
211
+ <option value="day">11</option>
212
+
213
+ <option value="day">12</option>
214
+
215
+ <option value="day">13</option>
216
+
217
+ <option value="day">14</option>
218
+
219
+ <option value="day">15</option>
220
+
221
+ <option value="day">16</option>
222
+
223
+ <option value="day">17</option>
224
+
225
+ <option value="day">18</option>
226
+
227
+ <option value="day">19</option>
228
+
229
+ <option value="day">20</option>
230
+
231
+ <option value="day">21</option>
232
+
233
+ <option value="day">22</option>
234
+
235
+ <option value="day">23</option>
236
+
237
+ <option value="day">24</option>
238
+
239
+ <option value="day">25</option>
240
+
241
+ <option value="day">26</option>
242
+
243
+ <option value="day">27</option>
244
+
245
+ <option value="day">28</option>
246
+
247
+ <option value="day">29</option>
248
+
249
+ <option value="day">30</option>
250
+
251
+ <option value="day">31</option>
252
+
253
+ </select>
254
+
255
+ <p class="date-day">日</p>
256
+
257
+ </div>
258
+
259
+ </div>
260
+
261
+ </div>
262
+
263
+
264
+
265
+
266
+
267
+ <div class="privacy-policy">
268
+
269
+ <p><input type="checkbox" name="accept">当サイトの<a href="https://ycm.co.jp/privacy/" target="_blank" rel="noopener noreferrer">「プライバシーポリシー」</a>に同意します。</p>
270
+
271
+ </div>
272
+
273
+ <p id="form_submit"><input type="button" id="form_submit_button" value="無料相談する!" /></p>
274
+
275
+ </div><!--form-container-->
276
+
277
+ </form>
278
+
279
+ ```
280
+
281
+
282
+
283
+ mailform.php↓
284
+
285
+
286
+
287
+ ```php
288
+
289
+ <?php
290
+
291
+
292
+
293
+ /*--------------------------------------------------------------------------
294
+
295
+
296
+
297
+ Script Name : Responsive Mailform
298
+
299
+ Author : FIRSTSTEP - Motohiro Tani
300
+
301
+ Author URL : https://www.1-firststep.com
302
+
303
+ Create Date : 2014/03/25
304
+
305
+ Version : 7.2.1
306
+
307
+ Last Update : 2019/10/03
308
+
309
+
310
+
311
+ --------------------------------------------------------------------------*/
312
+
313
+
314
+
315
+ if ( file_exists( dirname( __FILE__ ) .'/../addon/token/session.php' ) ) {
316
+
317
+ include( dirname( __FILE__ ) .'/../addon/token/session.php' );
318
+
319
+ }
320
+
321
+ error_reporting( E_ALL );
322
+
323
+
324
+
325
+ mb_language( 'ja' );
326
+
327
+ mb_internal_encoding( 'UTF-8' );
328
+
329
+ date_default_timezone_set( 'Asia/Tokyo' );
330
+
331
+
332
+
333
+ require_once( dirname( __FILE__ ) .'/class.mailform.php' );
334
+
335
+ $responsive_mailform = new Mailform();
336
+
337
+
338
+
339
+ if ( file_exists( dirname( __FILE__ ) .'/../addon/confirm/confirm.php' ) ) {
340
+
341
+ include( dirname( __FILE__ ) .'/../addon/confirm/confirm.php' );
342
+
343
+ }
344
+
345
+
346
+
347
+ $responsive_mailform->javascript_action_check();
348
+
349
+ $responsive_mailform->referer_check();
350
+
351
+
352
+
353
+ if ( file_exists( dirname( __FILE__ ) .'/../addon/token/token.php' ) ) {
354
+
355
+ include( dirname( __FILE__ ) .'/../addon/token/token.php' );
356
+
357
+ }
358
+
359
+
360
+
361
+ $responsive_mailform->post_check( 'default' );
362
+
363
+
364
+
365
+ if ( file_exists( dirname( __FILE__ ) .'/../addon/block/block.php' ) ) {
366
+
367
+ include( dirname( __FILE__ ) .'/../addon/block/block.php' );
368
+
369
+ }
370
+
371
+
372
+
373
+ $responsive_mailform->mail_set( 'send' );
374
+
375
+ $responsive_mailform->mail_set( 'thanks' );
376
+
377
+
378
+
379
+ if ( file_exists( dirname( __FILE__ ) .'/../addon/csv-record/include/csv.php' ) ) {
380
+
381
+ include( dirname( __FILE__ ) .'/../addon/csv-record/include/csv.php' );
382
+
383
+ }
384
+
385
+
386
+
387
+ $responsive_mailform->mail_send();
388
+
389
+ $responsive_mailform->mail_result();
390
+
391
+ ?>
392
+
393
+ ```