Preparations before learning: If you want to learn PHP, you certainly need to install PHP. so if you are studying for the first time, please first browse Starling brother and dodge: PHP4.03 installation of PHP4.04 in linux PHP4.04 installation of PHP4.04 in win98 in English win2000 if you want to prepare before learning: to learn PHP, of course, you must install PHP, therefore, if you are studying for the first time, please first browse the Starling brother and the ground to hide:
PHP4.03 installation in linux
PHP4.04 installation under win98
PHP4.04 installation in win2000
If you cannot find the installer, please download it below:
If you have never been familiar with PHP, let's take a look at it first. of course, even if you already know something about PHP, a PHP4 application manual is still needed ,:). In addition, an HTML syntax manual is of course indispensable ..........
OK! There should be nothing to prohibit us from learning now, Let's go!
Before learning the beginning, let's first explain the basic knowledge about the form. if you are very familiar with HTML, you can skip this section and learn it directly.
Therefore, the "website form" is a tool used to collect data from webpages. for example, if you want to conduct a mass investigation on the Internet, you must use it. Below I will briefly introduce the basic knowledge of the form. for details about the form, please refer to the HTML Manual.
The form application is very simple. let's take a look at the following example:
Name:
Single choice: I'm stupid. I'm stupid.
Multiple options: I like playing basketball, I like swimming, I like dancing, and I like hiking.
How is it? Do you understand? The above part is the form's html source code, and the lower part is the form's performance in the browser. The form ends when it is marked. The program that processes this Form is indicated by the action attribute in the Form tag. Here $ PHP_SELF is a global variable in PHP, which is used to keep the file name currently running the PHP program page, The current PHP program is used to process the form. So what does the following METHOD = post mean? There are two methods for sending a form from the browser to the server: GET and POST. GET to package the data and place it in the environment variable QUERY_STRING as part of the whole URL and pass it to the server. POST does many things similar to GET. The difference is that it transmits data to the script separately. your script gets the data through scale input. the QUERY_STRING environment variable will not be set. therefore, POST has better security, especially if your form contains a lot of data. when you use GET, the server assigns the variable QUERY_STRING to all form data, but the variable has limited storage capacity. in other words, if you have a lot of data but you use GET, you will lose a lot of data. If you use POST, you can apply as much data as possible, because the data is never allocated to a variable. In addition, using post to transmit data has another benefit. it does not expose the data you transmit in the browser's address bar like get, for example, form. php? Name = genius & pwd = 123456, do you understand? So it is reassuring to use post.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service