title: How to retrieve value on from in php?
body: <p>I am trying to retrieve value on php page but it's not retrieving value.</p>
  
  <p>Here is my code</p>
  
  <p><strong>retrieve</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;?php
  include('conn.php');
  $per_page = 3; 
  if($_GET)
  {
  $page=$_GET['page'];
  }
  $start = ($page-1)*$per_page;
  $select_table = "select * from clientreg order by id limit $start,$per_page";
  $variable = mysql_query($select_table);
  ?&gt;
  &lt;form name="frmUser" method="post" action=""&gt;
  &lt;div style="width:100%;"&gt;
  &lt;table border="0" cellpadding="10" cellspacing="1" width="100%" class="tblListForm"&gt;
  &lt;tr class="listheader"&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;td width="230" &gt;*****&lt;/td&gt;
  &lt;/tr&gt;
          &lt;?php
          $i=1;
          $j=0;
          while($row = mysql_fetch_array($variable))
          {
          if($j%2==0)
  $classname="evenRow";
  else
  $classname="oddRow";?&gt;
           &lt;tr class="&lt;?php echo $classname;?&gt;"&gt;
  &lt;td&gt;&lt;input type="checkbox" name="users[]" value="&lt;?php echo $row["id"]; ?&gt;" &gt;&lt;/td&gt;
  &lt;/tr&gt;
          &lt;?php
          $j++;}
          ?&gt;
              &lt;tr class="listheader"&gt;
  &lt;td colspan="9"&gt;&lt;input type="button" name="update" id="onclick" value="Update" /&gt; &lt;input type="button" name="delete" value="Delete"  onClick="setDeleteAction();" /&gt;
  &lt;input type="button" name="assign" id="assign" value="Assign" onClick="setLeadAssignAction();" /&gt;
  
  &lt;?php 
  $sql = mysql_query("SELECT *FROM login where  role=1");
  while ($row = mysql_fetch_array($sql)){
  
  ?&gt;
  &lt;tr class="listheader"&gt;
  &lt;td&gt;&lt;input type="checkbox" name="eid[]" value="&lt;?php echo $row["eid"]; ?&gt;" &gt;&lt;?php echo $row["username"]; ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  
  &lt;?php
  }
  ?&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;form class="form" method ="Post"action="" id="contact"&gt;
  &lt;?php
  if(isset($_POST["submit"]) &amp;&amp; $_POST["submit"]!="") {
  $rowCount = count($_POST["users"]);
  for($i=0;$i&lt;$rowCount;$i++) {
  
  $result = mysql_query("SELECT * FROM clientreg WHERE Id='" . $_POST["users"][$i] . "'");
  $row[$i]= mysql_fetch_array($result);
  echo "shakti";
    echo $row[$i]['id'];
    }
     }
  ?&gt;
  
                 &lt;img src="button_cancel.png" class="img" id="cancel"/&gt;   
  
               &lt;div id="left" style="height:400px;width:47%;float:left;margin-left:20px;margin-top:15px;border-radius:10px;"&gt;
  
                  &lt;label&gt;Lead Owner: &lt;span&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;br/&gt;
                  &lt;input type="text" name="leadowner[]" id="lead" placeholder="Lead Owner"value=""/&gt;&lt;br/&gt;
                  &lt;br/&gt;
                  &lt;label&gt;First Name: &lt;span&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;br/&gt;
                  &lt;input type="text" name="fname"id="fname" placeholder="Fname"/&gt;&lt;br/&gt;
                  &lt;br/&gt;
                  &lt;label&gt;Last Name: &lt;span&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;br/&gt;
                  &lt;input type="text" name="lname" id="lname" placeholder="Lname"/&gt;&lt;br/&gt;
                  &lt;br/&gt;
                  &lt;label&gt;Mobile No: &lt;span&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;br/&gt;
                  &lt;input type="text" name="mobile"id="mobile" placeholder="Mobile"/&gt;&lt;br/&gt;
                  &lt;br/&gt;
                  &lt;label&gt;Email Id: &lt;span&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;br/&gt;
                  &lt;input type="text"name="email" id="email" placeholder="Email"/&gt;&lt;br/&gt;
                  &lt;/div&gt;
              &lt;input type="submit"  name="submit" value="Submit"&gt;
              &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Where am I wrong in this code?</p>
  
  <p>Please sort out my problem</p>
  
  <p>My problem is here</p>
  
  <pre><code> if(isset($_POST["submit"]) &amp;&amp; $_POST["submit"]!="") {
      $rowCount = count($_POST["users"]);
  </code></pre>
  
  <p>Any help will be appreciated</p>
  
  <p>I have updated my code and added submit button.</p>