title: Unable to fetch data from textfield using $_POST
body: <p>I have been not able to fetch data from the textfield 'current_reading'. What can be the issue? every other text and <code>$_POST</code> method are working fine   </p>
  
  <p>
      
      
      
      index page
      </p>
  
  <pre><code>&lt;body&gt;
  
  &lt;?php
  include "connect.php";
  ?&gt;
  &lt;form method="post" action="billing.php"&gt;
  
  &lt;div id="wrapper"&gt;
      &lt;div class="data"&gt;
          &lt;div class="label"&gt;
          Society
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="society"  /&gt;
          &lt;/div&gt;
  
          &lt;div class="label"&gt;
          Customer id
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="customer_id"  /&gt;
          &lt;/div&gt;
  
          &lt;div class="label"&gt;
          Customer name
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="customer_name"  /&gt;
          &lt;/div&gt;
  
          &lt;div class="label"&gt;
          Wing
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="wing"  /&gt;
          &lt;/div&gt;
  
          &lt;div class="label"&gt;
          Flat no
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="flat_no"  /&gt;
          &lt;/div&gt;
  
            &lt;div class="label"&gt;
          Previous date
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="previous_date"  /&gt;
          &lt;/div&gt;
  
          &lt;div class="label"&gt;
          Previous reading
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="previous_reading"  /&gt;
          &lt;/div&gt;
  
  
          &lt;div class="label"&gt;
          Current date
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          &lt;input type="text" name="current_date"  /&gt;
          &lt;/div&gt;
  
           &lt;div class="label"&gt;
          Current reading
          &lt;/div&gt;
          &lt;div class="textfield"&gt;
          ***&lt;input type="text" name="current_reading"  /&gt;***
          &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;input type="submit" name="submit" value="submit"  /&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>
      
      
      
      Billing
      </p>
  
  <pre><code>&lt;body&gt;
  &lt;?php
  include "connect.php";
  ?&gt;
  
  &lt;?php
  
      $society=$_POST['society'];
      $id=$_POST['customer_id'];
      $name=$_POST['customer_name'];
  
      $wing=$_POST['wing'];
      $flat_no=$_POST['flat_no'];
  
      $previous_reading=$_POST['previous_reading'];
      $previous_date=$_POST['previous_date'];
  
      $current_date=$_POST['current_date'];
      *****$current_reading=$_POST['current_reading'];*****
  
      if($current_reading=" ")
      {
          echo "current date:".$current_date."&lt;br&gt;&lt;br&gt;";
      }
  
      else
      {
          echo "current reading:".$current_reading."&lt;br&gt;&lt;br&gt;";
          echo "previous reading:".$previous_reading."&lt;br&gt;&lt;br&gt;";
  
          $units=($current_reading-$previous_reading);
          echo "units".$units."&lt;br&gt;&lt;Br&gt;";
  
          $rate= mysql_query("select per_unit_rate from charges where society=".$society);
  
          $amount = $units * $rate;
  
          $service_charge=mysql_query("select service_charge from charges where society=".$society);
  
          $net_bill=$amount+$service_charge;
  
          echo "The amount of net bill is:".$net_bill;
  
          mysql_query("insert into report values ('$id', '$current_date', '$net_bill','$units')");
      }
  ?&gt;
  
  &lt;?php
  include "connect.php";
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have been not able to fetch data from the textfield 'current reading'(bold and red). What can be the issue? every other text and <code>$_POST</code> method are working fine</p>