Home  >  Article  >  Backend Development  >  How to get the parameters submitted by get in php

How to get the parameters submitted by get in php

(*-*)浩
(*-*)浩Original
2019-09-30 13:20:1313626browse

In PHP, if you want to obtain the data submitted through the get method, you can obtain it through the $_GET object (although the parameters can be viewed in the address bar)

How to get the parameters submitted by get in php

HTML code: The following is a simple form code to submit data to 01.php, using the get method (recommended learning: PHP video tutorial)



PHP code:

GET_PAGE";
    echo 'userName:'.$_GET['userName'];
    echo '
'; echo 'userEmail:'.$_GET['userEmail']; ?>

How to get the parameters submitted by get in php

The above is the detailed content of How to get the parameters submitted by get in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn