Benjamin W
Benjamin W

Reputation: 2848

Remove text value onclick?

How to remove input type - value text when user click on it. How to print Password, not ....... Do I must use java script? Is any way for php to remove dot?

Here is my code

<html>
    <form action="testing.php" method="POST">
            <p>SIGN UP</p>
            <input type="text" name="name" value="Enter Name" />
            <input type="password" name="password" value="Enter Password"/>
            <input type="submit" name="submit"/>
    </form>
</html>

Upvotes: 0

Views: 1110

Answers (1)

dsgriffin
dsgriffin

Reputation: 68626

Use Placeholder instead:

<input name="Name" placeholder="Enter Name" />

Upvotes: 1

Related Questions