use php to change a html elements inner text
<p>I have a basic form, which i need to put some validation into, I have a span area and I want on pressing of the submit button, for a predefined message to show in that box if a field is empty.</p>

<p>Something like</p>

<pre><code>if ($mytextfield = null) {
    //My custom error text to appear in the spcificed #logggingerror field
}
</code></pre>

<p>I know i can do this with jquery (document.getElementbyId('#errorlogging').innerHTML = "Text Here"), but how can I do this with PHP?</p>

<p>Bit of a new thing for me with php, any help greatly appreciated :)</p>

<p>Thanks</p>
