title: PHP: get the value of TEXTBOX then pass it to a VARIABLE
body: <p>Good Day!.</p>
  
  <p>I need a kinda little help for PHP. I’m really really newbie for PHP and I already search it to google and can’t find any solution.</p>
  
  <p>My Problem is:</p>
  
  <p>I want to get the value of textbox1 then transfer it to another page where the value of textbox1 will be appeared in the textbox2.</p>
  
  <p>Below is my codes for PHP:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;form name='form' method='post' action="testing2.php"&gt;
  
  Name: &lt;input type="text" name="name" id="name" &gt;&lt;br/&gt;
  
  &lt;input type="submit" name="submit" value="Submit"&gt;  
  
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I also add the code below and the error is “Notice: Undefined index: name”</p>
  
  <pre><code>&lt;?php 
  $name = $_GET['name'];
  echo $name;
  ?&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;?php 
  $name = $_POST['name'];
  echo $name;
  ?&gt;
  </code></pre>