Php form processing operations, php form processing
I recently learned PHP by myself and just learned the form. Let's simply put it.
First, I used two software, PHPstudy and phpstorm.
The installation is also very simple. I will not talk about it here.
Step: 1. Open phpstudy
This is the case:
2. Open the editor. I use phpstorm, because my phpstudy is saved on the E drive.
Therefore, I have created two files in the E: \ phpStudy \ PHPTutorial \ wwwdirectory, index.php and welcome.html.
The code for the two files is as follows:
Index. php
Welcome <? Php header ("Content-Type: text/html; charset = UTF-8"); echo $ _ POST ["fname"];?>! <Br> What is your age? <? Php echo $ _ POST ["age"];?> Years Old.
Welcome.html
<! DOCTYPE html>
Here we will talk about header ("Content-Type: text/html; charset = UTF-8"); this line of code is used to solve PHP Chinese garbled characters.
Take a look.
Click Submit,
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.