PHP Reading the content between tags
<p>If there are multiple hyperlinks in a webpage, How do I recognize them using JavaScript? Also, how do I store the content of the hyperlink in a variable, so that the data stored in the variable will be used the query a database and populate results in another webpage?</p>

<p>For example there are many links in the webpage like this</p>

<pre><code>&lt;a href="update.php"&gt;text 1&lt;/a&gt;.
&lt;a href="update.php"&gt;text 2&lt;/a&gt;

&lt;a href="update.php"&gt;text N&lt;/a&gt;
</code></pre>

<p>User can click any one of the hyperlinks in the webpage. If user clicks on hyperlink 'text4', <code>text4</code> should be saved in a variable. Then pass the variable value to update.php, where database is queried using the statement <code>SELECT text4 from table sometable</code> and results are populated. </p>
