{"id":16123609,"url":"https://github.com/mah-shamim/simple-contact-form","last_synced_at":"2025-03-18T12:31:26.564Z","repository":{"id":251113275,"uuid":"836400827","full_name":"mah-shamim/simple-contact-form","owner":"mah-shamim","description":"A simple contact form that sends an email to the site owner using PHP, jQuery, AJAX, Bootstrap, CSS, and MySQL.","archived":false,"fork":false,"pushed_at":"2024-08-01T19:31:24.000Z","size":12,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T20:01:46.934Z","etag":null,"topics":["beginner-projects","bootstrap","code-examples","contact-form","css","email","hands-on-projects","html","jquery","learning-resources","mysql","open-source","php","php-tutorials","web-application","web-development"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mah-shamim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-31T19:09:55.000Z","updated_at":"2024-11-23T11:30:04.000Z","dependencies_parsed_at":"2024-08-01T00:42:43.765Z","dependency_job_id":"4069e340-052e-4ec0-a419-5e8c6cfafe9f","html_url":"https://github.com/mah-shamim/simple-contact-form","commit_stats":null,"previous_names":["mah-shamim/simple-contact-form"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mah-shamim%2Fsimple-contact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mah-shamim%2Fsimple-contact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mah-shamim%2Fsimple-contact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mah-shamim%2Fsimple-contact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mah-shamim","download_url":"https://codeload.github.com/mah-shamim/simple-contact-form/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244222400,"owners_count":20418507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginner-projects","bootstrap","code-examples","contact-form","css","email","hands-on-projects","html","jquery","learning-resources","mysql","open-source","php","php-tutorials","web-application","web-development"],"created_at":"2024-10-09T21:17:41.153Z","updated_at":"2025-03-18T12:31:26.268Z","avatar_url":"https://github.com/mah-shamim.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Contact Form\nA simple contact form that sends an email to the site owner using PHP, jQuery, AJAX, Bootstrap, CSS, and MySQL.\n\n**Topics**: PHP, Contact Form, Email, AJAX, jQuery, Bootstrap, CSS, MySQL PDO, Web Development\n\n## Features\n\n- Simple contact form\n- Email notification to site owner\n- Stores messages in the database\n\n### Installation Process\n\n1. **Clone the Repository**:\n   ```sh\n   git clone https://github.com/yourusername/simple-contact-form.git\n   cd simple-contact-form\n   ```\n\n2. **Database Setup**:\n    - Create a new MySQL database.\n    - Import the provided `database.sql` file to set up the necessary table.\n    - Update the database configuration in `config.php`.\n    - Import the provided SQL file to set up the necessary tables.\n     ```sh\n     mysql -u yourusername -p contact_form_db \u003c database.sql\n     ```\n\n3. **Configure the Database Connection:**\n    - Open the `config.php` file and update the database credentials.\n      ```php\n        \u003c?php\n           define('DB_HOST', 'localhost');\n           define('DB_NAME', 'contact_form_db');\n           define('DB_USER', 'root');\n           define('DB_PASS', 'password');\n        ?\u003e\n      ```\n4. **Set Up Email Services:**\n    - Update the `send_email.php` file with your email configuration.\n\n5. **Start a Local PHP Server:**\n    - Start the PHP built-in server.\n      ```sh\n      php -S localhost:8000\n      ```\n\n6. **Access the Application:**\n    - Open your web browser and navigate to `http://localhost:8000`.\n\n## Usage\n\n1. Open the application in your web browser.\n2. Fill out the contact form and submit.\n3. The message will be sent to the site owner's email and stored in the database.\n\n### File Structure\n\nHere’s a basic file structure for your simple-contact-form application:\n\n```\nsimple-contact-form/\n├── css/\n│   └── styles.css\n├── js/\n│   └── script.js\n├── config.php\n├── index.php\n├── process_form.php\n├── send_email.php\n└── README.md\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmah-shamim%2Fsimple-contact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmah-shamim%2Fsimple-contact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmah-shamim%2Fsimple-contact-form/lists"}