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

Exploring the registration page

From: Dynamic Dreamweaver Websites: Creating Login Areas

Video: Exploring the registration page

We are now going to take a look at the registration page, for our login process. The idea is, this is for users of the Scuba2u website, can come in and register to become a member of our website when they do that, that registration page is going to insert their information into our login table. They will then be taken to the login form, in order to login and they must enter their credentials that they submitted with the register form.

Exploring the registration page

We are now going to take a look at the registration page, for our login process. The idea is, this is for users of the Scuba2u website, can come in and register to become a member of our website when they do that, that registration page is going to insert their information into our login table. They will then be taken to the login form, in order to login and they must enter their credentials that they submitted with the register form.

So, that's the idea behind the process we're working in right now. So I have the register page available, and this is another page, like our login form, that was created by the website designers and maintenance people for Scuba2u. We have been tasked with making this process workable on the website. So we're going to take their form and just like we did with the login form, we're going to make sure that this form makes sense and has all of the details we need, in order to insert their information into the database.

And make sure that their role gets registered as a guest. So let's go through these form fields real quickly. Now, first name in this field is set up to 30 characters wide. Our database can handle 40. So in the max characters, I'm going to enter 40 in this area. Character width is what's showing to the user. I don't need to make the box look bigger to the user, I just want to make sure that they can enter up to 40 characters. I'll do the same thing with last name, and we have the same situation, so I will set maximum characters to 40.

Last name has its own field, and our last name looks like it's only 11 characters, which could become a problem within our database. So we will need to address modifying that to 40 characters as well. So, we'll have to go out to the database and modify that value for last name within, the database itself. But for now we'll set it to 30 and 40 just like first name. Our phone number field has a bit of an issue here. Now do we really need phone number.

Well, when the database was set up, it doesn't look like we were planning on doing that. So, I'm going to delete the phone number field. From this registration form. Somebody may have made a change in some of the requirements, and our form does not reflect that. What we do have in our database, is the country and within the country area We don't have a country on the form. So, let's modify this form accordingly.

Now, this phone number piece I'm going to change the text here for our phone number, and have it say country instead. Now when I do that, I need to make sure I also change the name of the text field. I will set that to country now our country is also only 11 characters, countries will require more than that so I'll set the character width here to 20, and actually 20 probably isn't enough let's switch country to 30 maximum characters.

And in order to make it look nice to user, we'll do the same in the form itself. Now, our city is here for a 30 notice we don't have a city here, so the people who created this form must have changed the requirements, so I can completely eliminate the entire city piece. I'll select it right here, and delete that. And I will also delete all of this text within our form.

Now, this can tend to happen quite often. Somebody creates the form over the course of time before I get the form, it's different. So, it's very important to go through. And make sure that this information is correct. So, we know we need to modify in our database the country field, and the last name setting those to different values, and we will set the last name field in the database to 40 and our country to 30. So I'll have to go modify the database within PHP MyAdmin. Here we have our email and our password.

Now the last piece, let's say we have country, first name, last name. We have password and user name. Our user id will be assigned automatically by the database. Every user id must be unique. This is not as our primary key. You can see there's a little key next to this field. The only thing we haven't addressed, is assigning a guest rule for our user. I also should probably have our submit button not say submit. But I will say register.

That looks a little bit nicer. Now how can I get information into the database without the user being able to modify it? What I'm going to do, is put in what's known as a hidden form field and assign it a value of guest. Now this hidden form field can really go anywhere on your form. It can go below the form tag or it can go down here. I tend to not put it in between the fields. Sometimes it's hard to see. So since I have register selected already I'm going to hit the left arrow key on my keyboard.

And my cursor is now directly in front of this button even though it's hard to see. I'm going to go up to the Forms tab and click this third icon here. And it says Hidden Field. And I'm going to set to role as the name. And our value is going to be assigned a value of guest. Anybody coming from our website, is going to get the value of guest in the role area.

So, that is our hidden form field. Now let's make sure that's correct. I'll right-click and view data for our log in and you can see here is role. And they've been assigned either admin or guest. So this form should be all set. We now need to go up to the database, and modify our country and last name columns accordingly. Our register form should be all set to go.

Show transcript

This video is part of

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

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