Is there any way to get an html content/value with php?
<p>Can i get the content or value of the tag with php?
I know i can get it with javascript:</p>

<pre><code>$(function() {
    $('class or id').text();
});
</code></pre>

<p>But i would like to get it with php, so i can send it back in another query to my sql table.</p>

<pre><code>function changeContentToId(id) {
    $("#spanContent").html(id); }

&lt;?php echo "&lt;span onclick='changeContentToId($ob-&gt;ID)'&gt;...&lt;/span&gt;"; ?&gt;
&lt;span id="spanContent"&gt;&lt;/span&gt;
</code></pre>

<p>This is my code right now, any tips on how to write the top code in php? </p>

<p>thanks. :)</p>
