Oh, thats simple. Just put something like this:
Code:
value="<%if query%><%else%>Please enter your query<%endif%>"
You could even go as far as something like this on the input gox too:
Code:
onfocus="this.value='';"
..or even more:
Code:
onfocus="if (this.value == 'Please enter your query') { this.value = '' }
This would then remove the content, when they click on it (unless the content is different to "Please enter your query)
All untested, but should work.
UPDATE - just tried this, and works perfecto =) Code:
<input type="text" name="query" size="20" value="<%if query%><%query%><%else%>Please enter your query<%endif%>" onfocus="if (this.value == 'Please enter your query') { this.value = '' }" />
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!