why is my javascript confusing my php
<p>Im trying to use javascript in a HMTL contact form that shows text in the fields until the mouse has clicked one of them. However my PHP seems to still think that there is text in the fields when its only javascript and not physical HTML. Can someone help me fix this issue?</p>

<p><strong>Javascript / HTML Form</strong></p>

<pre><code>&lt;form method="post" action="sendEmail.php"&gt;

&lt;input type="text" name="name" id="name" onfocus="if (this.value == 'Your Name')
this.value = '';" onblur="if (this.value == '') this.value = 'Your Name';" maxlength="30"  
value="Your Name" /&gt;

&lt;input type="text" name="email" id="email" onfocus="if (this.value == 'Your Email')   
this.value = '';" onblur="if (this.value == '') this.value = 'Your Email';" maxlength="30" 
value="Your Email" /&gt;
&lt;br /&gt;&lt;br /&gt;


&lt;textarea name="message" id="comments" value="Enter Your Message Here..." cols="60" rows="5" 
onfocus="if (this.value == 'Enter Your Message Here...') this.value = '';" 
onblur="if (this.value == '') this.value = 'Enter Your Message Here...';" &gt;Enter Your Message Here...&lt;/textarea&gt;    
&lt;/form&gt; 
</code></pre>

<p></p>

<p><strong>PHP</strong></p>

<pre><code>if (strlen($name) &lt; 2) {
        $error['name'] = "Please enter your name";  
    }

    if (!preg_match('/^[a-z0-9&amp;\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*+[a-z]{2}/is', $email)) {
        $error['email'] = "Please enter a valid email address"; 
    }

    if (strlen($comments) &lt; 5) {
        $error['comments'] = "Messages must be longer then 5 characters";
    }
</code></pre>
