PHPによるお問い合わせフォームです。
フロントエンドにBootstrap、Font Awesomeを使用しています。
画面遷移なしの入力チェック、自動返信メール機能があります。
商用フリー、カスタマイズ自由です。
A contact form made that uses PHP, Bootstrap, Font Awesome.
Features PHP Input Validation without page transition, Automatic reply mail function.
Commercial free, Customization freedom.
Demoで動作をご確認ください。
You can check the operation in Demo.
contact
├── assets
│ ├── css
│ │ ├── cmn_layout.css
│ │ ├── cmn_reset.css
│ │ ├── cmn_style.css
│ │ ├── contact_style.css
│ │ └── import.css
│ ├── fonts
│ └── js
├── parts
│ ├── footer.php
│ └── header.php
├── pcf_lib
│ ├── init.php
│ ├── utility.php
│ └── validate.php
├── confirm.php
├── done.php
├── error.php
└── index.php
※Bootstrap、Font Awesameに関するファイルは省略しています。
※It does not describe the Bootstrap and Font Awesome related files
- contact/pcf_lib/init.phpでHOME_URLを設定します。(13〜16行目)
Please change the "HOME_URL" of the 13-16 line part of contact/pcf_lib/init.php.
// *** 「myphp/github-php-contact-form/contact/」を環境に合わせて必ず変更してください!!!
// http://(またはhttps://)からホストまでを取得
$site_url = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/';
define('HOME_URL', $site_url . 'myphp/github-php-contact-form/contact/');
- contact/pcf_lib/init.phpで管理者のメールアドレスを設定します。(18〜20行目)
Please change the "Administrator E-mail Address" of the 18-20 line part of contact/pcf_lib/init.php.
// *** 「[email protected]」を必ず変更してください!!!
// 自動返信メールの管理者メールアドレス
define("ADMIN_MAIL", "[email protected]");
- 自動送信されるメールの内容を変更したい場合はcontact/pcf_lib/utility.phpを編集してください。
If you want to change the content of the mail is transmitted automatically, please edit contact/pcf_lib/utility.php
管理者のメールアドレスを設定して、サーバーにアップすれば動作します。
After you set up an e-mail address of the administrator, you can work if you uploaded to the server.
Copyright © 2014 Kobe Beauty Co., Ltd.
Distributed under the MIT Licence.