PHP contact form overwrite fields issue repeating value

Posted by judi on Stack Overflow See other posts from Stack Overflow or by judi
Published on 2010-03-12T09:49:25Z Indexed on 2010/03/12 9:57 UTC
Read the original article Hit count: 449

Filed under:
|
|
|
|

H I'm using php contact form from http://phpfmg.sourceforge.net/home.php. I thought I'd add an onfocus effect so when i click in the fields the value dissappears automatically.

But when I submit say if haven't filled in my requried fields I get this the values appearing again like http://s647.photobucket.com/albums/uu199/judibluebottles/YETI%20images/?action=view&current=form_issue.jpg

<input type="text" class="text_box" onfocus="if(this.value=='Telephone')this.value='';" value="TelephoneTelephone" id="field_5" name="field_5">

© Stack Overflow or respective owner

Related posts about contact

Related posts about form