Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
An important but little-understood concept in dynamic web development is that of role-based logins, which allow different types of users to access different parts of the site. In this course Adobe Certified Expert Candyce Mairs shows how to use Dreamweaver's features to create role-based logins, restrict page access, build an administrator area, and test everything to make sure it works. Plus, see how to set up a development environment and work with a database from within Dreamweaver. Along the way, build your skills in areas like working with PHP, adding form validation, using server behaviors, and much more.
What I want to do now is give you an overview of the Administrative Area that has been set up at this point. And also, what the plan is for building an Update User Area. So, if I go out to the Admin homepage, right now we have Insert a New User and Update User Information. The Insert a New User was done in another movie, so the idea is we need a way for the administration within Scuba2U to be able to update information within the database.
And they don't have a specific database access or interface in order to be able to modify the database data directly. We want to create a web-based update system for them. So, they go out onto the company website and they're able to modify information about the members who are available within the Scuba2U website, and not just Guest members but Admin members. And they can also switch and move somebody from a Guest Member into an Admin Member. So, they're going to be able switch their role within the website Member Area, on top of being able add new people using the Insert a New User. Or modify the data on a person who has already registered. So, let's take a look at the pre-designed pages we have set up in order to accomplish the update portion.
Right now, there is an Admin User List page. And within this page, a table has been set up to store information about a user. Now, the way I've set this up, I do have all of their information being listed here, within this table. Now, we may or may not want all of that information available for a user, but I have it all set up so we can pull all of the information into this table. Once we do that, this will be a complete listing of every member within our website, whether they are a guest role or an admin role. So, we'll pull data from the database in order to populate this information with every member within Scuba2U, and the Member Area within our website. Now, once we pull the data out into this table, so that will be our first step, is to populate this table with database data of all of our members. The second piece of what needs to be done is this user ID number is going to become a hyperlink to the next page.
So, if we need to modify a users information, we're going to have them click the user ID link for that member. When we do that, it will take them to a second page, and that is our Admin User Update page. Once the admin clicks on that User ID hyperlink, this form will be populated with that particular members information. So, each one of these will be filled in by database data. Now once that is done, we can go in and modify any of the information within the database by changing the information that's printed here and clicking this button.
Now, this button says, Insert New User, and we will have to change that to say, Update User, because this is our update form, not our insert form. And the difference is, inserting a new user adds information to the database. Update simply changes information that is already stored within the database. So, that is a plan for this whole administrative interface. So, there's actually three different pieces we need to do to put this together.
But the first piece we need to address is getting our user list printing out all of our members within this table and making this User ID a hyperlink so we can pass that User ID to the Update page. The second portion will be working with this page, placing that information from the database for that member into this form. And then, once that is done, we need to activate this button to change the data within the database based on the new information.
And then, we'll take the user right back to the User List so they can confirm that the data was changed and modify another member's information if they need to do so. So, that is our Administrative Area. It is a way to update member information within our website, specifically the website database for all of the various members. Now, if we look at that database, it is the Login table is what we're going to be modifying.
So, we'll be working in the Login table within our database once we move into planning these pages and getting them set up. So, let's get started building our user or member update area.
There are currently no FAQs about Dynamic Dreamweaver Websites: Creating Login Areas.
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.