PHP page bookmark with GET
<p>1) Why does the URL show "&amp;submit=Submit" at the end? What should be done to get only the two variables name and age? </p>

<p>2) Does isset function work well with GET method as well? Is there another function or way to handle this?</p>

<p>Result screenshot
<a href="https://i.stack.imgur.com/BYmGo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BYmGo.jpg" alt="enter image description here"></a>
<div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
&lt;head&gt;
 &lt;title&gt;My first PHP page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;form action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" method="get"&gt;
   Name: &lt;input type="text" name="name"/&gt;
   Age: &lt;input type="text" name="age"/&gt;
   &lt;input type="submit" name="submit"/&gt;
  &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<pre><code>&lt;?php
    if ( isset($_GET['submit']) ) { //was the form submitted?

        echo "Welcome ". $_GET["name"] . "&lt;br&gt;";
        echo "You are ". $_GET["age"] . "years old&lt;br&gt;";
    }
?&gt;
</code></pre>