string _GET ( string $str )


_GET() finds the query string from the URL request initiated by HTTP GET method Information sent from a form with the GET method is visible to everybody because it will be displayed in the browser’s address window and has limits on the amount of information to send

※ available F/W version : all


Return values

If the value for the key string is found, returns a value string corresponding to the key string. It returns an empty string if it is not found. Otherwise PHP error.


// test.php
$str_get = "";
$str_get  = _GET("name");
    echo "get data: $str_get";

<form name = "submit_button" action = "test.php" method = "GET">
<input type = "text" name = "name">
<input type = "submit" value="Press GET" name="submit_button">

See also



This function is implemented for same operation to the predefined variable $_GET of the PHP Group’s PHP.