├── bootstrap.php ├── type.php ├── connect.php ├── README.md └── index.php /bootstrap.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /type.php: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /connect.php: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # PHP Contact Form with HTML5 Email 3 | 4 | ![Screenshot_46](https://user-images.githubusercontent.com/47697490/111340713-141a6f00-86a3-11eb-8ab2-8f910f1820d5.png) 5 | ![Screenshot_45](https://user-images.githubusercontent.com/47697490/111339508-03b5c480-86a2-11eb-9172-1074e0c3dd50.png) 6 | 7 | ## Basic PHP Contact Form 8 | 9 | ### Prerequisites 10 | XAMPP - Apache web server Code editor 127.0.0.1 11 | 12 | # Database PhpMyAdmin 13 | http://localhost/phpmyadmin/ 14 | ### create a new data TABLE 15 | ``` SELECT * FROM `roman_data_table` ``` 16 | - SQL 17 | ``` SELECT fname,lname,email,comment FROM roman_data_table ``` 18 | 19 | ### create a Users name 20 | -privileges 21 | - Add user account & password 22 | ``` roman_user_account ``` 23 | 24 | ### + roman_data_table 25 | SQL 26 | ``` 27 | CREATE TABLE roman_data_table( 28 | PersonID int, 29 | fname varchar(20), 30 | lname varchar(20), 31 | email varchar(20), 32 | ); 33 | ``` 34 | ``` 35 | -$host = "localhost"; 36 | -$databasebUser= "roman_user_account"; 37 | -$databasePwd="123"; 38 | -$dataBaseName= "roman_official_database"; 39 | ``` 40 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Contact form PHP 9 | 10 | 11 | 12 | 13 | 94 | 95 |
96 |
97 |
98 |

Contact

99 |
100 |
101 |
102 |
103 | 104 | 105 | 106 | 107 | 108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | 117 | --------------------------------------------------------------------------------