php tutorial - PHP Get - php programming - learn php - php code - php script

What is PHP get - method

  • PHP Forms - $_GET Function
    • The built-in $_GET function is used to collect values from a form sent with method="get".
    • Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send (max. 100 characters).
    • $_GET can also collect data sent in the URL.
    php - php 7 - php tutorial - php framework tutorial - php examples - php sample code - php basics - php web development - php components - php project - php technology  - learn php - php online - php programming - php program - php code - html code - embedded php in html - web server  - php syntax - php function - php get

    Sample Code

    if (isset($_GET["submit"])){
      // collect value of input field
      $name = $_GET['fname'];
      if (empty($name)) {
        echo "Name is empty";
      } else {
        echo $name;
    <form method="get">
      Name: <input type="text" name="fname">
      <input type="submit" name="submit">



    Related Searches to PHP Get