Copy link to clipboard
Copied
Hello,
I am trying to create a password textfield and button. Once the webpage opens the user must enter a password into the textfield provided and once the button (form submit) is clicked it should verify that it was the correct password entered by the user.
If it was the correct password, the system progresses to the next page. If it was not the correct password the user is asked to re-enter a password.
I also want to be able to set the password (e.g. 5555) so that this is the password used by everyone to access certain pages. Does the page need to be PHP or can you do this with HTML? I have the basic elements on the page (textfield and button) but I have not got a clue with regards coding for this.
I would appreciate any help given for this query.
Many Thanks
Copy link to clipboard
Copied
I think it will be much easier when applying Dreamweavers "Log In User" Server Behavior to a blank PHP document and modify the generated PHP code so that it will check the "login_user" table against the submitted password only.
csf7roa wrote:
If it was the correct password, the system progresses to the next page. If it was not the correct password the user is asked to re-enter a password.
When setting up the "Log In User" Server Behavior, you can specify a "redirectLoginSuccess" page and a "redirectLoginFailed" page.(have this one point to the current "Log in" page)
By the way: as with almost all Dreamweaver Server Behaviors, modifying the generated PHP code will also make the "Log In User" Server Behavior vanish from the Server Behavior Panel.