- #Dreamweaver cc 2017 tutorial how to#
- #Dreamweaver cc 2017 tutorial registration#
- #Dreamweaver cc 2017 tutorial code#
The id should be the primary key and set to int(11)įirst you need to hash the password/s as you should not store unencrypted passwords in your database for security reasons. Make sure the username is set to var(50) and the password is set to var(150). You need 3 columns in your database - id, username and password.
#Dreamweaver cc 2017 tutorial code#
Assuming your server has php5.5 or above enabled you can use the password_hash and password_verify php functions.Įxample code php/mysqli (scroll below). This can be as hard as you like or as easy as you like.
How can I do this in my version of Dreamweaver CC 2017? I want this to happen if a user enters the website address for the protected page directly into the address bar of their browserĢ: No session ID or invalid session ID is detected or session ID can not be determinedģ: User is allowed to continue to the protected page without being redirected to the login page. I want to have this happen when the user enters the incorrect details into the login formģ: User is directed to a page that says "you have entered an incorrect username or password please try again."
I want this to happen when i user enters the correct details into the login form:ġ: Username and password is entered into the login formĢ: User submits the form by clicking loginģ: Username and password is validated against credentials held in a MySQL databaseĥ: User is directed to the protected "members" page
#Dreamweaver cc 2017 tutorial registration#
I will be using a web-form that submits a registration request to an administrator via email, who will manually validate the users identity and then create an entry for them in the user database. I do not need a registration page as I do not want users to be able to self register.
#Dreamweaver cc 2017 tutorial how to#
What I don't know how to do is make the form work with the database and as previously mentioned all tutorials that I have found (including official adobe ones) are talking about server behaviours which is not helpful to me at all since I am using the CC 2017 version of dreamweaver.ġ: A login page with a web-form where users enter their user name and passwordĢ: A login button that will submit the information in the form I know how to create the database and I know how to layout the form. I really want to create a proper login page that uses a web-form connected to a MySQL database. I have found many tutorial online (including some wrote officially by adobe) but they all seem to be out of date as they are all talking about "server behaviours" which was depreciated when Dreamweaver CC was released and is no longer included with Dreamweaver. I have been doing some research on how I would create a login page with Dreamweaver 2017 as I wanted to create a practice page to make sure I understood the principles and that I was securing my pages and databases correctly before moving to a production environment.