Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Password Textfield and Button

New Here ,
Apr 03, 2011 Apr 03, 2011

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

TOPICS
Server side applications

Views

347
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 03, 2011 Apr 03, 2011

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines