simple contact form
v.0.0.1
Formulir kontak sederhana yang mengirim email ke pemilik situs menggunakan PHP, JQuery, Ajax, Bootstrap, CSS, dan MySQL.
Topik : PHP, Formulir Kontak, Email, Ajax, JQuery, Bootstrap, CSS, MySQL PDO, Pengembangan Web
Klon Repositori :
git clone https://github.com/yourusername/simple-contact-form.git
cd simple-contact-formPengaturan Basis Data :
database.sql yang disediakan untuk mengatur tabel yang diperlukan.config.php .mysql -u yourusername -p contact_form_db < database.sqlKonfigurasikan koneksi database:
config.php dan perbarui kredensial basis data. <?php
define ( ' DB_HOST ' , ' localhost ' );
define ( ' DB_NAME ' , ' contact_form_db ' );
define ( ' DB_USER ' , ' root ' );
define ( ' DB_PASS ' , ' password ' );
?>Mengatur Layanan Email:
send_email.php dengan konfigurasi email Anda.Mulai server PHP lokal:
php -S localhost:8000Akses aplikasi:
http://localhost:8000 . Berikut struktur file dasar untuk aplikasi bentuk-kontak sederhana Anda:
simple-contact-form/
├── css/
│ └── styles.css
├── js/
│ └── script.js
├── config.php
├── index.php
├── process_form.php
├── send_email.php
└── README.md