simple contact form
v.0.0.1
Ein einfaches Kontaktformular, das eine E -Mail an den Site -Besitzer mit PHP, JQuery, Ajax, Bootstrap, CSS und MySQL sendet.
Themen : PHP, Kontaktformular, E -Mail, Ajax, JQuery, Bootstrap, CSS, MySQL PDO, Webentwicklung
Klonen Sie das Repository :
git clone https://github.com/yourusername/simple-contact-form.git
cd simple-contact-formDatenbank -Setup :
database.sql , um die erforderliche Tabelle einzurichten.config.php .mysql -u yourusername -p contact_form_db < database.sqlKonfigurieren Sie die Datenbankverbindung:
config.php und aktualisieren Sie die Datenbank -Anmeldeinformationen. <?php
define ( ' DB_HOST ' , ' localhost ' );
define ( ' DB_NAME ' , ' contact_form_db ' );
define ( ' DB_USER ' , ' root ' );
define ( ' DB_PASS ' , ' password ' );
?>E -Mail -Dienste einrichten:
send_email.php mit Ihrer E -Mail -Konfiguration.Starten Sie einen lokalen PHP -Server:
php -S localhost:8000Zugriff auf die Anwendung:
http://localhost:8000 . Hier ist eine grundlegende Dateistruktur für Ihre einfachkontakte Anwendung:
simple-contact-form/
├── css/
│ └── styles.css
├── js/
│ └── script.js
├── config.php
├── index.php
├── process_form.php
├── send_email.php
└── README.md