├── index.php
└── README.MD
/index.php:
--------------------------------------------------------------------------------
1 | Password: %s
54 |
Gender: %s
55 |
Color: %s
56 |
Languages(s): %s
57 |
Comments: %s
58 |
T&C: %s',
59 | htmlspecialchars($name, ENT_QUOTES),
60 | htmlspecialchars($password, ENT_QUOTES),
61 | htmlspecialchars($gender, ENT_QUOTES),
62 | htmlspecialchars($color, ENT_QUOTES),
63 | htmlspecialchars(implode(' ', $languages), ENT_QUOTES),
64 | htmlspecialchars($comments, ENT_QUOTES),
65 | htmlspecialchars($tc, ENT_QUOTES),
66 | );
67 | }
68 | }
69 | ?>
70 |
71 |
--------------------------------------------------------------------------------
/README.MD:
--------------------------------------------------------------------------------
1 | Processing Form Data
2 |
3 |
27 |
28 |
29 |
30 |

31 |
32 |
33 |
Processing Form Data
34 |
35 |
36 |
37 |
38 |
39 | # 📗 Table of Contents
40 |
41 | - [📖 About the Project](#about-project)
42 | - [🛠 Built With](#built-with)
43 | - [Tech Stack](#tech-stack)
44 | - [Key Features](#key-features)
45 | - [🚀 Live Demo](#live-demo)
46 | - [💻 Getting Started](#getting-started)
47 | - [Setup](#setup)
48 | - [Prerequisites](#prerequisites)
49 | - [Install](#install)
50 | - [Usage](#usage)
51 | - [Run tests](#run-tests)
52 | - [Deployment](#triangular_flag_on_post-deployment)
53 | - [👥 Authors](#authors)
54 | - [🔭 Future Features](#future-features)
55 | - [🤝 Contributing](#contributing)
56 | - [⭐️ Show your support](#support)
57 | - [🙏 Acknowledgements](#acknowledgements)
58 | - [❓ FAQ (OPTIONAL)](#faq)
59 | - [📝 License](#license)
60 |
61 |
62 |
63 | # 📖 [Processing Form Data]
64 |
65 | This code is a simple PHP script that creates an HTML form with various input fields, including text input, password input, radio buttons, and dropdown menus. When the form is submitted, the script checks if the $_POST['searchterm'] variable is set, and if so, it echoes the value of the searchterm field after running it through the htmlspecialchars() function with the ENT_QUOTES flag to escape any special characters. The form includes fields for user name, password, gender, favorite color, and languages spoken. There is also a submit button labeled "Search".
66 |
67 | ## 🛠 Built With
68 |
69 | ### Tech Stack
70 |
71 | > Describe the tech stack and include only the relevant sections that apply to your project.
72 |
73 |
74 | Client
75 |
78 |
79 |
80 |
81 | Server
82 |
85 |
86 |
87 |
88 |
89 | ### Key Features
90 |
91 | > Describe between 1-3 key features of the application.
92 |
93 | - **[key_feature_1]**
94 | - **[key_feature_2]**
95 | - **[key_feature_3]**
96 |
97 | (back to top)
98 |
99 |
100 |
101 | ## 🚀 Live Demo
102 |
103 | > Add a link to your deployed project.
104 |
105 | - [Live Demo Link](https://yourdeployedapplicationlink.com)
106 |
107 | (back to top)
108 |
109 |
110 |
111 | ## 💻 Getting Started
112 |
113 | > Describe how a new developer could make use of your project.
114 |
115 | To get a local copy up and running, follow these steps.
116 |
117 | ### Prerequisites
118 |
119 | In order to run this project you need:
120 |
121 |
128 |
129 | ### Setup
130 |
131 | Clone this repository to your desired folder:
132 |
133 |
141 |
142 | ### Install
143 |
144 | Install this project with:
145 |
146 |
154 |
155 | ### Usage
156 |
157 | To run the project, execute the following command:
158 |
159 |
166 |
167 | ### Run tests
168 |
169 | To run tests, run the following command:
170 |
171 |
178 |
179 | ### Deployment
180 |
181 | You can deploy this project using:
182 |
183 |
190 |
191 | (back to top)
192 |
193 |
194 |
195 | ## 👥 Authors
196 |
197 | > Mention all of the collaborators of this project.
198 |
199 | 👤 **Author1**
200 |
201 | - GitHub: [@githubhandle](https://github.com/githubhandle)
202 | - Twitter: [@twitterhandle](https://twitter.com/twitterhandle)
203 | - LinkedIn: [LinkedIn](https://linkedin.com/in/linkedinhandle)
204 |
205 | 👤 **Author2**
206 |
207 | - GitHub: [@githubhandle](https://github.com/githubhandle)
208 | - Twitter: [@twitterhandle](https://twitter.com/twitterhandle)
209 | - LinkedIn: [LinkedIn](https://linkedin.com/in/linkedinhandle)
210 |
211 | (back to top)
212 |
213 |
214 |
215 | ## 🔭 Future Features
216 |
217 | > Describe 1 - 3 features you will add to the project.
218 |
219 | - [ ] **[new_feature_1]**
220 | - [ ] **[new_feature_2]**
221 | - [ ] **[new_feature_3]**
222 |
223 | (back to top)
224 |
225 |
226 |
227 | ## 🤝 Contributing
228 |
229 | Contributions, issues, and feature requests are welcome!
230 |
231 | Feel free to check the [issues page](../../issues/).
232 |
233 | (back to top)
234 |
235 |
236 |
237 | ## ⭐️ Show your support
238 |
239 | > Write a message to encourage readers to support your project
240 |
241 | If you like this project...
242 |
243 | (back to top)
244 |
245 |
246 |
247 | ## 🙏 Acknowledgments
248 |
249 | > Give credit to everyone who inspired your codebase.
250 |
251 | I would like to thank...
252 |
253 | (back to top)
254 |
255 |
256 |
257 | ## ❓ FAQ (OPTIONAL)
258 |
259 | > Add at least 2 questions new developers would ask when they decide to use your project.
260 |
261 | - **[Question_1]**
262 |
263 | - [Answer_1]
264 |
265 | - **[Question_2]**
266 |
267 | - [Answer_2]
268 |
269 | (back to top)
270 |
271 |
272 |
273 | ## 📝 License
274 |
275 | This project is [MIT](./LICENSE) licensed.
276 |
277 | _NOTE: we recommend using the [MIT license](https://choosealicense.com/licenses/mit/) - you can set it up quickly by [using templates available on GitHub](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). You can also use [any other license](https://choosealicense.com/licenses/) if you wish._
278 |
279 | (back to top)
280 |
--------------------------------------------------------------------------------