Input textbox with Watermark hint and submitted value
<p>I have an html Input box to enter value used to run a PHP script.
The value can also be passed using the URL and GET.</p>

<p>Now I would like to have a watermark hint in my textbox.
I used the code from this gentleman:
<a href="http://www.drewnoakes.com/code/javascript/hintTextbox.html" rel="nofollow">http://www.drewnoakes.com/code/javascript/hintTextbox.html</a></p>

<p>It works fine except that if I enter a value and submit the textbox does not show the value but the default hint. I would like to see the value instead.
How can I do that?</p>

<p>Here is partial code:</p>

<pre><code>&lt;form method="get" action='index.php'&gt;
&lt;input type="text" name='q' SIZE="50" value="search for anything here" class="hintTextbox"&gt; 
&lt;/form&gt;

&lt;?php
$Input = "";
if (isset($_GET['q'])) $Input = $_GET['q'];

try {
    script($Input);
}
catch (Exception $e) {
    print $e-&gt;getMessage();
}
?&gt;
</code></pre>


