{"id":27172782,"url":"https://github.com/jigyasag18/travel-form-using-php-technology","last_synced_at":"2025-04-09T10:30:15.674Z","repository":{"id":285957541,"uuid":"959893648","full_name":"jigyasaG18/Travel-Form-Using-PHP-Technology","owner":"jigyasaG18","description":"Travel Form Using PHP Technology is a project designed to collect and manage student information for trips. Built with HTML, CSS, and PHP, it features a user-friendly interface and a MySQL database for efficient data storage and retrieval.","archived":false,"fork":false,"pushed_at":"2025-04-03T14:24:59.000Z","size":301,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T15:30:46.673Z","etag":null,"topics":["css","css3","cssstyle","databse","html","php","phpform","phpforms","sql","travelform"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jigyasaG18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-04-03T14:19:06.000Z","updated_at":"2025-04-03T14:33:45.000Z","dependencies_parsed_at":"2025-04-03T15:32:11.299Z","dependency_job_id":"a67209bf-8763-4054-b4e2-502d0349ad4d","html_url":"https://github.com/jigyasaG18/Travel-Form-Using-PHP-Technology","commit_stats":null,"previous_names":["jigyasag18/travel-form-using-php-technology"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigyasaG18%2FTravel-Form-Using-PHP-Technology","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigyasaG18%2FTravel-Form-Using-PHP-Technology/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigyasaG18%2FTravel-Form-Using-PHP-Technology/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigyasaG18%2FTravel-Form-Using-PHP-Technology/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jigyasaG18","download_url":"https://codeload.github.com/jigyasaG18/Travel-Form-Using-PHP-Technology/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020230,"owners_count":21034403,"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":["css","css3","cssstyle","databse","html","php","phpform","phpforms","sql","travelform"],"created_at":"2025-04-09T10:30:14.355Z","updated_at":"2025-04-09T10:30:15.657Z","avatar_url":"https://github.com/jigyasaG18.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Travel Form Using PHP Technology\n\n## Overview\n\nThe **Travel Form** is a web application designed to collect and manage information from students who are interested in participating in a trip. Built using HTML, CSS, and PHP, this application offers a user-friendly interface with a robust back-end database for efficient data handling.\n\n## Features\n\n- **User Registration Form:** A well-designed form capturing essential information such as:\n  - Name\n  - Age\n  - Gender\n  - Email Address\n  - Phone Number\n  - Description of Interest\n- **Responsive Design:** Ensures accessibility on both desktop and mobile devices.\n- **Database Integration:** Submissions are securely stored in a MySQL database.\n- **Data Validation:** PHP scripts check for input accuracy and completeness.\n- **Error Handling:** Friendly error messages guide users to correct input mistakes.\n\n## Technologies Used\n\n- **HTML:** For creating the structure of the web form.\n- **CSS:** For styling the application, enhancing the user interface.\n- **PHP:** Handles server-side processing and database interactions.\n- **MySQL:** Stores the submitted data in a structured format.\n\n## Database Schema\n\nThe application uses a MySQL database named `travel_form` with the following table structure:\n\n### Table: `trip`\n\n| Column Name | Data Type          | Description                                      |\n|-------------|---------------------|--------------------------------------------------|\n| `sno`       | INT (Primary Key)   | Unique identifier for each trip entry (auto-increment) |\n| `name`      | TEXT                | Student's full name                              |\n| `age`       | INT                 | Student's age                                    |\n| `gender`    | VARCHAR(8)          | Student's gender                                 |\n| `email`     | VARCHAR(22)         | Student's email address                          |\n| `phone`     | VARCHAR(10)         | Student's phone number                           |\n| `desc`      | TEXT                | Brief description or interest in the trip       |\n| `dt`        | DATETIME            | Timestamp of the entry (defaults to current timestamp) |\n\n## Installation Instructions\n\n1. **Set Up a Local Environment:**\n   - Install a local server environment such as XAMPP, WAMP, or MAMP to set up the necessary components like PHP and MySQL.\n\n2. **Create the Database:**\n   - Open your database management tool (like phpMyAdmin).\n   - Create a new database named `travel_form`.\n\n3. **Run SQL Script:**\n   - Execute the SQL dump provided in the `database.sql` file to create the `trip` table and insert example data.\n\n4. **Configure Database Connection:**\n   - Update it with your database connection details:\n     ```php\n     $servername = \"localhost\"; // usually \"localhost\"\n     $username = \"your_username\"; // typically \"root\" for local development\n     $password = \"your_password\"; // your database password\n     $dbname = \"travel_form\";      // name of the database you created\n     ```\n\n5. **Access the Application:**\n   - Place all project files in the `htdocs` folder of your server (e.g., XAMPP).\n   - Open your web browser and navigate to:\n     ```\n     http://localhost/path_to_your_project/index.php\n     ```\n\n## Usage Instructions\n\n1. **Filling Out the Form:**\n   - Navigate to the form in your web browser.\n   - Enter the required fields (marked with an asterisk).\n   - Ensure the information is accurate.\n\n2. **Submitting the Form:**\n   - Click the “Submit” button.\n   - The application will display any errors if the input is invalid, guiding you to correct mistakes.\n\n3. **Data Management:**\n   - You can view all submitted trip entries through phpMyAdmin or implement an admin panel for data management in future enhancements.\n\n## Future Enhancements\n\nEnhancements to consider for future development:\n\n- **Email Notifications:** Notify students upon successful submission of the form.\n- **Admin Dashboard:** Implement an interface for administrators to manage submissions (view, edit, delete).\n- **File Uploads:** Allow students to upload relevant documents like medical forms or parental consent.\n- **User Authentication:** Implement user login and authentication for better security and data management.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjigyasag18%2Ftravel-form-using-php-technology","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjigyasag18%2Ftravel-form-using-php-technology","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjigyasag18%2Ftravel-form-using-php-technology/lists"}