Home > PHP & Programming > Quizzes > PHP Programming Basics Practice Test: HTML Forms & PHP
PHP Programming Basics Practice Test: HTML Forms & PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 79% Most missed: “When you use the $_GET variable to collect data, the data is visible to ________…”
HTML forms are used to send user information to a server, which then returns the results to the browser. The main difference between an HTML form and a PHP form is that a PHP file can contain PHP code, while an HTML file can only contain HTML. This means that you can put PHP code within your HTML markup, but the PHP code won't be executed. PHP can be used for dynamic generation and accessing server-side data.  Here are some ways to use PHP with HTML forms: Send data to the server: You can use PHP scripting to send data from HTML forms directly to the server. There are two methods for... Show more
PHP Programming Basics Practice Test: HTML Forms & PHP
Time left 00:00
10 Questions

1. When you use the $_POST variable to collect data, the data is visible to ___________
2. Which variable is used to collect form data sent with both the GET and POST methods?
3. When you use the $_GET variable to collect data, the data is visible to ___________
4. When you use the $_GET variable to collect data, the data is visible to ___________
5. To validate an email address, which flag is to be passed to the function filter_var()?
6. Which two predefined variables are used to retrieve information from forms?
7. To validate an email address, which flag is to be passed to the function filter_var()?
8. The attack which involves the insertion of malicious code into a page frequented by other users is known as _______________
9. Which variable is used to collect form data sent with both the GET and POST methods?
10. Which function is used to remove all HTML tags from a string passed to a form?