Php form processing operations, php form processing

Source: Internet
Author: User

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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.