Web development N cases-Case 3: passing parameters between php and html using the post and get methods

Source: Internet
Author: User
: This article mainly introduces N examples of web development-Case 3: passing parameters between php and html using the post and get methods. For more information about PHP tutorials, see. Web development N examples

Case 3: use the post and get methods to pass parameters between php and html

Case3.php:

    
     
     Case 3
 
 
 Click the hyperlink to pass parameters
 

Case3-output.php:

 "; Else echo" failed to pass data through get
"; If (isset ($ _ GET [" getHidText "]) echo" the hidden data transmitted by get is: {$ _ GET ['gethidtext']}
"; Else echo" no hidden data passed through get
"; If (isset ($ _ GET [" urlText "]) echo" the data transmitted by the url is: {$ _ GET ['urltext']}
"; Else echo" data is not transmitted through url
"; If (isset ($ _ POST [" postText "]) echo" the data transmitted by post is: {$ _ POST ['posttext']}
"; Else echo" data is not transmitted through post
"; If (isset ($ _ POST [" postHidText "]) echo" the hidden data passed by post is: {$ _ POST ['posthidtext']}
"; Else echo" no hidden data passed through post
";

The annotations are very detailed and do not need to be clarified.

N examples of web development-Case 3: passing parameters between php and html using the post and get methods, including the following content, if you are interested in PHP tutorials.

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.