The user fills in the data in the form and then submits it to a php file. The PHP file uses functions to obtain the data (recommended learning:PHP video tutorial)
After the user fills in the username, it is submitted to the welcome.php file. In the welcome.php file,
Welcome Your email address is:
$_POST["name"] is the name entered by the user
You can use these three constants in PHP scripts to accept user input or display the results of processing and calculation.
STDIN Standard input device
STDOUT Standard output device
STDERR Standard error Device
The PHP process is as follows: The fwrite() function will first write a message to the standard output device and ask for the user's name. It then reads the user input information obtained from the standard input device into a PHP variable and combines it into a string. Then use fwrite() to print the string to the standard output device
Copy after login
The above is the detailed content of How to read input in php. For more information, please follow other related articles on the PHP Chinese website!