How to Pass values between php and html

Source: Internet
Author: User
How do I use form to pass values between php and html? How does php receive such data? Solution: -------------------- two parameters in form, an action indicates the file to which the data is transmitted. If this parameter is left blank, the data is transmitted by default. a method indicates the method used for data transfer, $ _ post (value transfer between pos php and html) is used in files with get and POST input boxes and names.

How can I use form to pass values to php? how can php receive such data?
------ Solution ----------------------
Two parameters in the form, one action, indicates the file to which the data is transmitted. If this parameter is left blank, the default parameter is used. one method indicates the method used for data transfer. There are two types: get and post.
Add name to the input box
The accepted files are received in $ _ POST or $ _ GET. The simplest is to directly var_dump ($ _ POST) or var_dump ($ _ GET) and then you will know how to call it.

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.