Blog

python tutorials and learn python

Created with Sketch.

PHP Select Option

PHP Select Option Summary: in this tutorial, you will learn how to use the <select> element to create a drop-down list and a list box and how to get the selected values from the <select> element in PHP. A quick introduction to the <select> element The <select> is an HTML element that provides a list…
Read more

PHP Radio Button

PHP Radio Button Summary: in this tutorial, you’ll learn how to create a form with radio buttons and handle radio groups in PHP. Introduction to radio buttons To create a radio button, you use the <input> element with the type radio. For example: <input type=”radio” name=”contact” id=”contact_email” value=”email” /> Code language: HTML, XML (xml) A…
Read more

PHP Multiple Checkboxes

PHP Multiple Checkboxes Summary: in this tutorial, you will learn how to handle a form with multiple checkboxes in PHP. How to handle multiple checkboxes on a form A form may contain multiple checkboxes with the same name. When you submit the form, you’ll receive multiple values on the server under one name. To get…
Read more

PHP Checkbox

PHP Checkbox Summary: in this tutorial, you will learn how to use PHP to process a form with one or more checkboxes. A quick introduction to the checkbox element A checkbox allows you to select a single value for submission in a form. To create a checkbox, you use the input element with the type…
Read more

PHP Form Validation

PHP Form Validation Summary: in this tutorial, you’ll learn about PHP form validation, how to validate form data, and how to show error messages if the user inputs are invalid. Introduction to PHP form validation When processing a form, it’s critical to validate user inputs to ensure that the data is in a valid format.…
Read more

PHP filter_input

PHP filter_input Summary: in this tutorial, you will learn how to use the PHP filter_input() function to get an external variable by name and filter it. Introduction to PHP filter_input() function The PHP filter_input() function allows you to get an external variable by its name and filter it using one or more built-in filters. The…
Read more

PHP filter_var

PHP filter_var Summary: in this tutorial, you will learn how to use the PHP filter_var() function to sanitize and validate data. Introduction to the PHP filter_var() function When dealing with external data, you need to sanitize and validate it for security purposes. The external data may come from user inputs or third-party API. A good…
Read more

PHP filter_has_var

PHP filter_has_var Summary: in this tutorial, you’ll learn about the filter_has_var() function and how to use it to check if a variable exists in an input. Introduction to the filter_has_var() function The filter_has_var() function checks if a variable of a specified type exists. Here’s the syntax of the filter_has_var() function: filter_has_var ( int $input_type ,…
Read more

PHP Form

PHP Form Summary: in this tutorial, you will learn how HTML forms work and how to process form data in PHP. Introduction to PHP form processing To create a form, you use the <form> element as follows: <form action=”form.php” method=”post”> </form> Code language: HTML, XML (xml) The <form> element has two important attributes: action: specifies…
Read more

PHP Session

PHP Session Summary: in this tutorial, you will learn how to work with PHP sessions to preserve the state of the web application across pages during a session. Introduction to PHP sessions The HTTP protocol is stateless. For example, when you visit the product page product.php, the web server responds with the page: Suppose, you…
Read more