XForms/Secret

The XForms secret control
People that are sitting near you should not be able to see your password as you enter it. The   control echos a "*" to the screen for each character you type.

Screen Image
Here is what the user interface would look like:



Testing
The login characters should be echoed back but the password field should just echo a "*" character for every character the user types.

Discussion
The values for the login and password are stored directly in the model.

This example uses a CSS style sheet to put the labels and fieldset legend in bold and align the login and password labels.

By default the fieldset box stretches the entire width of the page. You can make it static by adding a style attribute with the width set to 250 pixels like this: 