Hi guys! Easy Newsletter has three inputs, First name, Last name and email and I want them to be
onfocus, e.g. first name will be in the input area and when you click it, it goes away. Now I have:
<input type="text" name="firstname" size="50" maxlength="50">
I tried to put this:
<input type="text" name="firstname" size="40" maxlength="40" value="firstname" onblur="if(this.value == '') {this.value='firstname'}" onfocus="if (this.value == 'firstname') {this.value=''}" />
but it’s not working, I’m getting an error.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in ..../manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 93
What am I doing wrong?

Thanks
I had fainted, unless I had believed to see the goodness of the LORD in the land of the living.
Hmmm... interesting. The code actually looks good to me.
First thing I would try would be to add the semi-colons to the Javascript statemement as per below.
<input type="text" name="firstname" size="40" maxlength="40" value="firstname" onblur="if(this.value == '') {this.value='firstname'};" onfocus="if (this.value == 'firstname') {this.value=''};" />
Then again, maybe all that code will bork the parser anyway.
Good luck, D