i was working on having a input field clear from saying Password, with a type of text, to changing to password in php
does anyone think they know how to fix this?
does anyone think they know how to fix this?
PHP Code:
<input name="password" size="10" onblur="if(this.value=='') {this.value='Password'; <?php $input_type='text'; ?>}" onfocus="if(this.value=='Password') {this.value=''; <?php $input_type='password'; ?>}" value="Password" type="<?php echo $input_type; ?>">
Comment