title: passing <a> value to next page which all the href are same page that will process the data
body: <p>I am a new to programming. I like to ask that how can I retrieve the value of the <code>&lt;a&gt;</code> or text </p>
  
  <p>that is hyperlinked and post it to the next page(<code>abc.php</code>). All of the hyperlinked <code>$row['a']</code> will go to abc.php and process the data based </p>
  
  <p>on the hyperlinked <code>$row['a']</code> that is clicked. For now, I keep getting undefined, <code>&lt;a&gt;</code> contains </p>
  
  <p>nothing?!</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $("a").click(function(event) {
          alert("As you can see, the link no longer took you to jquery.com");
          var a = $(this).attr('a');
          alert(a);
          event.preventDefault();
      });
  });
  &lt;/script&gt;  
  
  echo "&lt;td&gt;"."&lt;a href='abc.php'&gt;".$row['a']."&lt;/a&gt;&lt;/td&gt;";
  </code></pre>