HTML PHP Form Processing; Variable
<p>I'm a newbie learning and trying to understand how html forms and php processing works.</p>

<p>Came across this pair of examples:</p>

<p>HTML FORM:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

  &lt;form action="hello-web.php" method="GET"&gt;
  &lt;label&gt;Name:&lt;/label&gt;
  &lt;input type="text" name="yourName" size="24"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>PHP PROCESSOR:</p>

<pre><code>&lt;?php
$fname = $_GET["yourName"];

echo "Hello $fname!";
?&gt;
</code></pre>

<p>OUTPUT SHOULD BE:
Hello Entered/Example Name!</p>

<p>QUESTION:
When I try to change the variable <strong>"yourName"</strong> (on BOTH HTML and PHP files) to, for example <strong>"typeName"</strong> , the entered name on the form does not show up.</p>

<p>In other words, the output becomes just: Hello  !</p>

<p>Is "yourName" a standard php or html variable? Can it not be changed to what ever you want it to be?</p>

<p>Better yet, how exactly does the form process data?</p>

<hr>

<p>Here is my altered code that won't output the entered name (I posted here as an answer because all the codes shows up as a continuous line, like a paragraph, when I paste as a comment to your answer:</p>

<p>HTML FORM(altered--typeName):</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

  &lt;form action="hello-web.php" method="GET"&gt;
  &lt;label&gt;Name:&lt;/label&gt;
  &lt;input type="text" name="typeName" size="24"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>PHP PRCESSOR (altered--typeName):</p>

<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;?php
$fname = $_GET["typeName"];

echo "Hello $fname!";
?&gt;

&lt;/body&gt;
&lt;/html&gt; 
</code></pre>
