title: how to pass values between tabs in a html page using php
body: <p>how can I pass values/ variables between tabs in html using php </p>
  
  <p>I have 3 tabs those are fetched from database. each tab has separate id.</p>
  
  <pre><code> &lt;div class="tab-nav"&gt;
       &lt;?php while ($row1 = mysql_fetch_array($result1)) : ?&gt;
       &lt;a href="vacancies.php?id=&lt;?php $row1['id']; ?&gt;" class="active"&gt;&lt;?php $row1['name']; ?&gt;&lt;/a&gt;
       &lt;?php endwhile ?&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p><strong>tabs</strong></p>
  
  <pre><code>&lt;div class="tab-holder"&gt;
      &lt;div class="tab"&gt;
          &lt;table class="table table-striped"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th width="34%"&gt;Job Title&lt;/th&gt;
                      &lt;th width="15%"&gt;Experience&lt;/th&gt;
                      &lt;th width="29%"&gt;Location&lt;/th&gt;
                      &lt;th width="8%"&gt;Salary&lt;/th&gt;
                      &lt;th width="7%"&gt;&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
              &lt;?php 
              while($row = mysql_fetch_array($result)) {
                  $cat = $row['cat'];
                  if ($cat =='6') {
                      $jobtitle = $row['vVacjobtitle'];
              ?&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;span class="pill medium green"&gt;&lt;?php echo $row['vVacjobtitle'] ?&gt;&lt;/span&gt;
  
                      &lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $row['experience'] ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $row['vVacLocation'] ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $row['salary'] ?&gt;&lt;/td&gt;
                      &lt;td&gt;
                          &lt;a href="post_resume.php?c=&lt;?php echo $jobtitle; ?&gt;"&gt;Apply&lt;/a&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;?php 
                  }
             } ?&gt;
             &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>how can i get id when clicking the tab</p>
  
  <p>if ($cat == 6)</p>
  
  <p>i want to place id in the place of 6</p>
  
  <p>Thanks in advance .. :)</p>