Skip to main content
Inspiring
March 11, 2010
Question

password field

  • March 11, 2010
  • 2 replies
  • 663 views

Simple login form but my password field will not display with asterisks. it displays the entered text. I have the field type set to password - any ideas?

<cfform>

<table border="1">
  <tr>
    <th scope="row">User Name:</th>
    <td>
      <cfinput type="text" name="username" id="username">
    </td>
  </tr>
  <tr>
    <th scope="row">Password:</th>
    <td><label>
      <cfinput type="password" name="password" id="password">
    </label>    </tr>
</table>

 
    <input type="submit" name="submit" id="submit" value="Submit" />

</cfform>

    This topic has been closed for replies.

    2 replies

    ilssac
    Inspiring
    March 11, 2010

    Your code is working correctly on my system in my browser.

    The type="password" is something that the browser has to impliment... Could there be something starnge going on in your browser on your system?

    rockhikerAuthor
    Inspiring
    March 11, 2010

    Once I changed all the objects to cf objects it worked. Thank you!

    ilssac
    Inspiring
    March 11, 2010

    Did you do that in your orginal post!?!

    My first reply was about the <cfinput....> tags being inside a plain <form...> block.  But when I posted it and reviewed your code again, I say it was inside a <cfform...> block.  I figured, my old tired eyes and mis-saw the code and deleted my original post.

    But if you changed your post while I was writing mine... then I wasn't seeing things.

    ilssac
    Inspiring
    March 11, 2010

    Delete what I just said, I apparently didn't see what I thought I saw.