Permalink
Browse files

入力内容を MySQL に保存するカスタマイズ例

  • Loading branch information...
1 parent ea33bde commit 6a69cb7057ecdcde07e77414f82b47a671d22499 @dounokouno committed Oct 31, 2015
Showing with 72 additions and 370 deletions.
  1. +10 −0 config/config.yml
  2. +0 −8 confirm.html
  3. +2 −1 index.php
  4. +21 −361 input.html
  5. +39 −0 lib/exTransmitMail.php
View
@@ -0,0 +1,10 @@
+config:
+ to_email: info@example.com
+ to_subject: [株式会社テスト]お問い合わせ
+ auto_reply_subject: [株式会社テスト]お問い合わせありがとうございます
+ auto_reply_name: 株式会社テスト
+ db_name: transmitmail
+ db_user: username
+ db_password: password
+ db_host: localhost
+ db_table: contacts
View
@@ -24,14 +24,6 @@
<td>{$params[].value.nl2br}&nbsp;</td>
</tr>
{/loop:$params}
- {loop:$files}
- <tr>
- <th>{$files[].key}&nbsp;</th>
- <td>{$files[].name}<br>
- <img src="index.php?file={$files[].tmp_name}" width="300"><br>
- <a href="index.php?file={$files[].tmp_name}" target="_blank" class="external">画像を別ウィンドウで開く</a></td>
- </tr>
- {/loop:$files}
</table>
<div class="center">
<form method="post" action="index.php" class="inline">
View
@@ -9,5 +9,6 @@
*/
require_once 'lib/TransmitMail.php';
-$tm = new TransmitMail('config/config.yml');
+require_once 'lib/exTransmitMail.php';
+$tm = new exTransmitMail('config/config.yml');
$tm->run();
Oops, something went wrong.

0 comments on commit 6a69cb7

Please sign in to comment.