Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Before we move into actually adding the log in functionality, for our pages, what I want to do is show you a feature built into Dreamweaver that we're going to be using to create all of these functional pieces of our log in process. I'm going to open up the login page. You can see my panels are greyed out, if I don't have a page open. So we're not actually going to be working on this page, I just want to activate the panel by having it open.
I'm going to go out to the server behaviors panel now. And it is just to the right of the Databases tab. In case yours is not open you want to go up to Window and go down to Server Behaviors here. Now these are only active if you have three checkmarks in front of these. If for some reason your testing server is not understood by Dreamweaver... You will have difficulty working with server behaviors, so you must have a check mark here.
If you have difficulty, you can simply click testing server here, and make sure there are check marks in these areas. If not, you will want to correct the section that has a problem. Click save, and you should get your check marks back. Now, within server behaviors, what these are are snippets of code that Dreamweaver can add to your webpages to add functionality. And Dreamweaver can add these to your page in multiple server side languages.
Right now, we are working in document type PHP. So that is how Dreamweaver knows which language to add to our pages. Within this area, there are a bunch of different pieces. Notice there's Insert, Update, and Delete records from within a database. But there's also some information in the user authentication area and this is where we are going to be working. We're going to be working in order to log in our user with the log in user server behavior.
The Restrict Access to Page server behavior prevents people from seeing the page unless they are logged in. The Log Out User will actually log the user out of the website and when they go to register for our website, this server behavior makes sure that somebody else is not using that same username. An example is, in our login form we have this email address. Well, if they're already registered, they don't need to re-register, and this will prevent them from getting two registrations.
It also makes sure nobody else can register under that same email address themselves. So these are the server behaviors we will be working on for the login specific features. In order to register new users on our website, we need to insert their information into the database. And this is the server behavior we will use to do that. So we'll move into adding some of this functionality.
But I wanted to explain a few of these features before we did so. So let's get adding some functionality to our login area using these server behaviors.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 99436 Viewers
56 Video lessons · 112665 Viewers
71 Video lessons · 81493 Viewers
131 Video lessons · 39121 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.