Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Planning the login process

From: Dynamic Dreamweaver Websites: Creating Login Areas

Video: Planning the login process

We are now ready to create our log in area for our website. Dreamweaver understands where our database is located, in order to work with the log in table. That log in table is where we store user information. We need a table and a database in order to authenticate against it. So, we can make sure users should actually be using the website. There are other ways you can authenticate for in log in area, but the database is a standard method, so that's what we're using here.

Planning the login process

We are now ready to create our log in area for our website. Dreamweaver understands where our database is located, in order to work with the log in table. That log in table is where we store user information. We need a table and a database in order to authenticate against it. So, we can make sure users should actually be using the website. There are other ways you can authenticate for in log in area, but the database is a standard method, so that's what we're using here.

I want to discuss planning this log in area before we begin actually, doing it. I tend to find this is a tricky setup with regards to the clients I have worked with. So, I have an example of this within my resources area that I want to talk about first. So, within resources, the yellow bubbles here, on my website, in the design area, I'm going to go ahead to the flow chart example for planning a website.

And within this area I have an example flow chart that I have used for clients. I tend to have them asking me for a log in area. And they don't really understand the process of what is needed in order to do this, especially if it's a static website at the time. They don't have a database setup. So, we need to incorporate all of those pieces for them and I give them a price and they cannot understand why it's such a big deal. They figure, you just create a form, the user clicks the button, and they're logged in.

So, please make sure you plan your log in process. And that's what this flow chart assist me to be able to do. Walk through the different scripts with a client, so we could plan this all out. If I don't plan correctly, I can't give them the proper pricing, and we also, more importantly, can't decide on a proper deadline for the project. When can this go live on their website? So, if we start from the beginning within this flow chart. And I created this in VIZIO, it's a product I really like, but you can create this in any type of graphic editor.

What's nice about VIZIO is the arrows all stay connected, so when you move these boxes around, it just makes it a little bit easier. But users will start here at a log in page. So then, I ask the client, should there be a link to the log in form from every page on the website? Or what parts of the website should be able to access this? Also, what web pages lead to that particular process? Now, with regards to a log in, are we going to allow them to register on the website? In other words, anybody can come to their site.

Register to become a member. And once they're registered, they create a log in, user name and password, and we can use that. Or, are we within our company, Scuba2u, going to assign users to this log in area and we will handle it from our side. So, they won't be registering themselves through a form on the website. If they do a registration form, then we need a script once the user clicks that button to add them to the database.

What database are we going to use and what table are we going to populate with their information? Also, what information needs to go on that form? It's amazing to me. In order to create a form, we need to know what information the client wants to gather for the form. In other words, what data do they need from a user? And I generally have to ask that question of people. Because they don't necessarily think through all of those details. Once the user is registered, if we're allowing them to do that, the script will send them a link and an email to the log in page. This will authenticate that it's a correct email address and it assigns them a default user name and password.

In the email, they can click on that link, go out to the log-in page and change their password. Is that how we want to do it? Or do we want to let them choose their username and password when they register in the form? Now that we have gathered data from the user in some form or another. Either we added it to the database or they registered themselves through this process, they are going to log in. On the log in page, there will be a test script that runs to see if they can log in or not. So, this form will have a user name and password field on it. If they do not pass that script, in other words, if the log in fails, what do we want to do with them? Also, how are we going to handle forgotten passwords? Within our database, are we going to store those passwords as encrypted passwords? Which is what you should be doing for data.

If we do that, then we need to assign them a new temporary password, if they forgot theirs. Because once it's encrypted in the database, we cannot decrypt it. If the log in passes, they're taken to the log in homepage. Let's say this a member's area of the website, this would be the homepage for once you've logged in. From that page, you can access whatever information is needed once you log in. Change password link, once logged in. Is that something we're going to allow them to do, to change their password? And what are we going to do about logging out? Where are we going to send them once they log out? So, you can see, there's a lot of decisions to be made prior to actually creating any type of log in process. Now, I've made all those decisions for you for this course. But if you are going to create your own, these are things to think about. So, feel free to come out and use this as a base to modify. But at least it gives you an idea of some of the things you need to think about before you create a log in area for your website.

The plan for Scuba2u is users will be able to register from our website. They will register as a guest, if that's the case. For anybody being assigned an admin role within our website, they will be allowed to get into the admin area of the site to administer the database. But we will have to change them internally within our company. We will log into the admin area ourselves, as an admin, in order to add anybody else as an admin. So, that is the plan for the Scuba2u website and the log in area.

Show transcript

This video is part of

Image for Dynamic Dreamweaver Websites: Creating Login Areas
Dynamic Dreamweaver Websites: Creating Login Areas

43 video lessons · 1735 viewers

Candyce Mairs
Author

 
Expand all | Collapse all
  1. 1m 32s
    1. Welcome
      1m 32s
  2. 2m 57s
    1. Course overview
      1m 16s
    2. The course environment
      1m 41s
  3. 26m 58s
    1. Static vs. dynamic requests
      4m 8s
    2. Installing XAMPP on a Windows system
      8m 54s
    3. Installing MAMP on a Mac system
      4m 29s
    4. Using admin consoles
      3m 54s
    5. Installing the course files
      5m 33s
  4. 18m 36s
    1. Overview of the Dreamweaver interface
      6m 22s
    2. Setting up the course site
      6m 20s
    3. Previewing pages
      5m 54s
  5. 33m 38s
    1. Creating PHP pages
      5m 45s
    2. Adding PHP code
      5m 44s
    3. Displaying variables
      4m 45s
    4. Commenting your code
      5m 30s
    5. Working with includes
      5m 58s
    6. Building the course templates
      5m 56s
  6. 35m 13s
    1. What is a database?
      5m 2s
    2. Adding database tables
      7m 34s
    3. Connecting to the database
      8m 28s
    4. Getting data from a database: Part one
      8m 25s
    5. Getting data from a database: Part two
      5m 44s
  7. 1h 16m
    1. Planning the login process
      7m 25s
    2. Creating a login form
      7m 45s
    3. Adding form validation: Part one
      9m 22s
    4. Adding form validation: Part two
      1m 37s
    5. Exploring the registration page
      7m 17s
    6. Correcting table fields
      6m 1s
    7. Setting up the login landing page
      4m 1s
    8. Using server behaviors
      3m 36s
    9. Inserting new members
      8m 48s
    10. User authentication
      10m 3s
    11. Restricting access to pages
      5m 17s
    12. Testing the login
      4m 53s
  8. 1h 6m
    1. Admin area overview
      5m 9s
    2. Adding new users
      5m 19s
    3. Restricting access
      12m 25s
    4. Planning the admin update area
      5m 19s
    5. Building the members table listing
      6m 55s
    6. Building the querystring
      9m 14s
    7. Populating the update form
      6m 33s
    8. Updating the database data
      11m 28s
    9. Testing the admin update process
      3m 47s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dynamic Dreamweaver Websites: Creating Login Areas.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.