Home >Backend Development >PHP Tutorial >Android programmers learn PHP development (11)-Form submission-PhpStorm
$_GET Variable
#The predefined $_GET variable is used to collect values from the form with method="get".
The information sent from the form with the GET method is visible to anyone (will be displayed in the browser's address bar), and is There is also a limit to the amount of information.
Let’s take a look at the FIG animation intuitively, and then see how to implement this Demo:
<a href="server.php?name=iwanghang&age=18">server</a>Step 2:
##server.php:
<?php var_dump($_GET); // 打印结果:array(2) { ["name"]=> string(9) "iwanghang" ["age"]=> string(2) "10" } echo "<br>"; echo $_GET['name']."<br>"; // 打印结果:iwanghang echo $_GET['age']."<br>"; // 打印结果:18
---------------------------------- -------------------------------------------------- --------------------------
Form submission:
server.php: