The ability to easily manipulate the information that users submit through HTML forms has been one of the advantages of PHP. In fact, PHP version 4.1 adds several new ways to access the information and effectively removes one of the most commonly used methods in previous versions. This article studied different ways to use the information submitted on an HTML form and used both earlier versions of PHP and newer versions. This article starts with a study of a single value and then builds a page that can generally access any available form values.
Note: This article assumes that you have access to a WEB server running PHP version 3.0 or later. You need to have a basic understanding of PHP itself and the creation of HTML forms.
HTML form
As you read this article, you will see how different types of HTML form elements provide information that PHP can access. For this example, I used a simple information form that consists of two text fields, two check boxes, and a selection box that allows multiple items:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.