title: getting the value from a textbox in php
body: <p>i am trying to create a donate page. the hole page is php, </p>
  
  <p>there is a textbox that hold the amount value which should be send via hidden input with the url to the the payment gateway. i have tryed many time but it is not working. i am still a beginner in this could any one please help me in fixing my code here</p>
  
  
  
  <pre><code>   &lt;div class="donate"&gt;
     &lt;?php
          $amount = $_REQUEST['amount'];
          $txtCurrency = 840;
          $txtAmount   = number_format($amount, 2, '.', '');
          echo $amount;       
          $key     = "TEST";
                      $txthttp     = "http://test.com/you.php";
  
      ?&gt; 
      &lt;form action="payment.php" name="form1"&gt;
          &lt;input type="text" id="amount"&gt;
          &lt;input type="submit"&gt;
              &lt;input type="hidden" name="txtAmount" value="&lt;?= $txtAmount; ?&gt;"&gt;
              &lt;input type="hidden" name="txthttp" value="&lt;?= $txthttp; ?&gt;"&gt;
              &lt;input type="hidden" name="signature" value="&lt;?= $key; ?&gt;"&gt;
      &lt;/form&gt;
     &lt;/div&gt;
  </code></pre>