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

Creating a login form

From: Dynamic Dreamweaver Websites: Creating Login Areas

Video: Creating a login form

We have now planned out our login process, figured out what pages need to be created, what scripts need ot be written in PHP. Now, it's a matter of actually building that piece and the people who maintain the website for Scuba2U have created a login form for us. It's just the front end piece, there's no programming of any kind. And it's been passed off to us to look over and add the back end piece.

Creating a login form

We have now planned out our login process, figured out what pages need to be created, what scripts need ot be written in PHP. Now, it's a matter of actually building that piece and the people who maintain the website for Scuba2U have created a login form for us. It's just the front end piece, there's no programming of any kind. And it's been passed off to us to look over and add the back end piece.

And this is quite often what ends up happening. It's kind of the distinction between the designer. It will create the forum to match the website and the developer who actually gets the forum functioning. Here is our Scuba2U Login form. Now, I'm going to close up a couple of things here. Well actually, just one I'll keep the properties open for you. I'm going to close up this Insert bar just so I have more space available here in order to show you this piece. Now, within the Properties area, I can get some information about this form, or I can certainly go into Code View.

Either way, within our form,we have the Login form itself. Now, I'm not sure if we want to use a single word for Login, or if we would rather put a space in here and make in a separate word. I think I will make in a separate word, minor details here. So, we'll make that look a little bit nicer. The other thing we want to do is add the title, so this is going to be the Scuba2U Login form up in our Title area right now.

Now, you can see these Form field are two different sizes, and that's fine. However, we as the developers are setting up the database piece so we need to make sure that these two match and the information the user can put into these two match up with our database. I will go out to the Dreamweaver Databases tab. The Login table within the Database's tab is what we need to take a look at. So, open up your Login area, and this is all of the data contained within our Login.

So, on this form, email is actually representing our username within the database. Now, if I double-click on that down in the Properties area, and it just makes it a little bit easier for me to show this to you instead of Code View. Within the Properties area, I can see the Properties for this field. Now, if you notice our username accepts 50 characters. And right now, within our Email field, we are accepting 60.

I certainly cannot allow the user to add 60 characters if my Username field only allows 50. Every time they try and use this, they will get a database error. So, I'm going to limit this to 50, the same number of characters as my username in the database. The password, we need to do the same thing. Now, our Password field here is set up correctly as a password. So, we wanted to double check that. However, let's check the length.

Character width of 10, maximum characters 10. In our database, we're allowing 15. So, what I'm going to do is I'm not going to change this character width necessarily. Because it'll make it look to the user like we need a really long password for them, but I am going to change maximum characters and make sure they cannot enter more than 15. So, our form is set up now, looks good from the back end side. We're making sure that these match up with our database data, then it's a matter of activating this Login form.

And when they click the Submit button, we want to make sure that they can authenticate correctly. Now, the word Submit is not the nicest, so I'm going to change that to say Login. And to do that, I change the value down here. So, I selected that button and within the Properties area, I'm going to have it say Login. Make sure this says Submit Form within this area, and there is our login.

Let's take a look at this in the browser. I just want to make sure it looks okay for the user. It looks good. We do have a little bit of extra area here, but that's fine. This square is being caused by a field set HTML tag, and the text within that box is a part of the Legend tag. And I find a lot of people are not familiar with that tag. So, let me show you that piece before we move on. Within Code View, I will see right after the Login form, here is that extra paragraph of space, which is fine.

I have a field set and my form is located completely within the field set. So, there's my opening field set. Here is my closing field set. And notice our form tag is within that. I'll move this over so it makes a little more sense. So, here's our form. Here's our field set, and directly under the Field Set tag, we have our Legend tag. This is the information that goes on that field set.

Now that field set does look slightly different in different browsers, I'll save my changes. And in Internet Explorer, the field set gets a little bit of a curve on the edges, and it is a lighter grey. Within Firefox, it's a little bit different. And if you look at in Chrome and Safari, each one has subtle difference between them. So, I'll open it back up in Firefox here. You can see it's a little bit darker, and it's square. In Internet Explorer, it's lighter.

Also, where the actual words fall is just slightly different. So subtle distinctions, I'm not going to be concerned about that piece. But our form looks ready to go. We have our Login form. We just need to create the Action page, and then link this form to our Action page. We aren't going to worry about that. Dreamweaver will actually set up our action for us once we use Dreamweaver to create and authenticate our Login area.

So, our Login form is all set to go. We've compared it to the database. Now, the last piece of information we need to add to this form is making sure that the user has to put in correct information. So, we'll have to look at some form validation for this form. So, we'll move on to working with some form validation. And we may want to set up this form a little bit differently in order to add the form validation piece.

Show transcript

This video is part of

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

43 video lessons · 1668 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 preferencesfrom 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.