One line of code that i need some directive in...
i think this can be done in java script and i dun care really php would be nice... but i really don't mind
<HTML>
<HEAD>
<SCRIPT language=JavaScript>
<!-- // clears default values from input boxes
function clearText(thefield){
if (thefield.defaultValue==thefield.value) thefield.value = ""
} // -->
</SCRIPT>
</HEAD>
<BODY>
<INPUT name="name" onfocus=clearText(this) value="Your Name"></TD></TR>
the only difference is that with the previous post, if you type someting, and then before submitting it, if you click somewhere else - When you come back you're own input clears itself.
I was hoping to use the above one as i don't want to have too much JavaScript lying around because i use templates to parse my html files... and anything extra i add into the php... however, that line did not work on my website, but since i don't own the webserver and the admins there aren't giving me slack i cannot see the logs... i get a blank page...