メールフォーム例
Contact Form 7 プラグインを使って、いろんな機能を試してみました。
出来上がったフォームと、ソースコードをあわせてご覧ください。
サンプルフォーム
サンプルソース
<div class="form"> <table> <tr><th>お名前</th><td>[text* name-1 20/ akismet:author class:text_m]</td></tr> <tr><th>Eメール</th><td>[email* email-1 20/ class:text_m akismet:author_email]</td></tr> <tr><th>URL</th><td>[text url-1 40/ class:text_l akismet:author_url 'http://']</td></tr> <tr><th>セレクトメニュー</th><td>[select* menu include_blank 'aaa' 'bbb' 'ccc']</td></tr> <tr><th>チェック項目</th><td>[checkbox checkbox 'A' 'B' 'C' 'D' 'E']</td></tr> <tr><th>選択項目</th><td>[radio radio 'a' 'b' 'c' 'd' 'e']</td></tr> <tr><th>メッセージ</th><td>[textarea message 50x5 class:text_l]</td></tr> <tr><th>CAPTCHA</th><td>画像に書かれた同じ文字を入力してください [captchac captcha size:m][captchar captcha 4/4 class:text_s]</td></tr> <tr><th>承認</th><td><label>[acceptance acceptance] 同意します</label></td></tr> </table> <div class='submit'>[submit '送信']</div> </div>
2008/5/24 土曜日 at 6:45 PM
[...] » サンプルフォームもご覧ください。 [...]
2008/6/11 水曜日 at 10:11 AM
今、気がつきましたが、現バージョン1.7.7.1では、checkboxを使うとエラーになりますね。以前は大丈夫だったと思うので、近いうちに対応していただることでしょう。