title: Data not transferred between 2 forms using php-echo
body: <p>I am working on making update functionality in an html form. I am sending data from one form to other through <code>echo</code> to be updated. But I am not able to populate other from catching the data send from 1st form.</p>
  
  <p>The field id text box is blank.</p>
  
  <p>Here is my code:</p>
  
  <p><strong>Sent key from from 1:</strong></p>
  
  <pre><code>  &lt;tr&gt;
      &lt;td style='width:150px;border:1px solid grey;'&gt;&lt;?= $row['field_id'] ?&gt;&lt;/td&gt;
      &lt;td style='width:150px;border:1px solid grey;'&gt;&lt;?= $row['description'] ?&gt;&lt;/td&gt;
      &lt;td style='width:150px;border:1px solid grey;'&gt;&lt;?= $row['corner_points'] ?&gt;&lt;/td&gt;
      &lt;td style='width:150px;border:1px solid grey;'&gt;&lt;?= $row['notes'] ?&gt;&lt;/td&gt;
      &lt;td style='width:150px;border:1px solid grey;'&gt;&lt;a target="_blank" href="Edit/edit-field.php?field_id=&lt;?php echo $row['field_id'];?&gt;"&gt;Edit&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  </code></pre>
  
  <p><strong>to receive data edit-field.php:</strong></p>
  
  <pre><code>&lt;?php
  
      if(isset($GET["field_id"]))    
        {
         $field_id = $GET["field_id"]; 
        }
  
       try {
              $stmt = $conn-&gt;prepare("SELECT field_id, description, corner_points, notes FROM fields where field_id = $field_id");
              $stmt-&gt;execute();
  
              $stmt-&gt;setFetchMode(PDO::FETCH_ASSOC);
              $result = $stmt-&gt;fetchAll();
          }
  
          catch(PDOException $e) {
          echo "Error: " . $e-&gt;getMessage();
          }
          ?&gt;
  
     &lt;form action="" method="post" class="needs-validation" novalidate enctype="multipart/form-data"&gt; 
      &lt;h6&gt; Field &lt;/h6&gt;
    &lt;div class="form-row"&gt;
      &lt;div class="col-md-4 mb-3"&gt;
        &lt;label for="validationCustom01"&gt;Field ID&lt;/label&gt;
        &lt;input type="number" class="form-control" name="field_id" id="field_id" value="&lt;?php echo $result["field_id"];?&gt;"&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  
    &lt;button class="btn btn-primary btn-sm" name="submit1" type="submit"&gt;Update Records&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>