< Return to Video

Bootstrap in Dreamweaver for beginners (Part 3). Contact Form with free source code.

  • 0:00 - 0:03
    Hello everyone. First, I apologize for the
  • 0:03 - 0:06
    delay after part one and part number two,
  • 0:06 - 0:09
    uh, creating a responsible website using
  • 0:09 - 0:12
    bootstrap and Dreamweaver.
  • 0:12 - 0:15
    In part number one, we created a bare
  • 0:15 - 0:18
    bones structure of a responsive website. In
  • 0:18 - 0:22
    part number two, we stylized using CSS. In
  • 0:22 - 0:25
    part number three today, we're going to
  • 0:25 - 0:28
    complete the contact page using PHP file.
  • 0:28 - 0:31
    So, uh, please download the other source
  • 0:31 - 0:33
    code files from the link I provided in
  • 0:33 - 0:36
    my description, so those are code we're
  • 0:36 - 0:38
    going to use today. And if you haven't
  • 0:38 - 0:41
    watched my first two videos, please watch
  • 0:41 - 0:44
    them first, uh, and so we can, uh, just keep
  • 0:44 - 0:46
    working together. Please don't forget to
  • 0:46 - 0:49
    subscribe my channel, hit the like button,
  • 0:49 - 0:52
    and set the alarm for my latest video.
  • 0:52 - 0:55
    Then let's get started.
  • 0:56 - 0:59
    Okay, so this is where we stopped in part
  • 0:59 - 1:02
    number two. Uh, in part number one, we
  • 1:02 - 1:03
    created the one responsive
  • 1:03 - 1:06
    website, uh, using the bootstrap and Dreamweaver.
  • 1:06 - 1:08
    And in part number two, we
  • 1:08 - 1:10
    stylized like this, with some background
  • 1:10 - 1:14
    color, and then on the logos, and then on
  • 1:14 - 1:17
    the different text colors, and so on. And
  • 1:17 - 1:20
    also we made a link to each page. About,
  • 1:20 - 1:24
    volunteer, adopt and contact, and
  • 1:24 - 1:27
    everything's responsive. And this
  • 1:27 - 1:29
    bootstrap, I mean the hamburger button,
  • 1:29 - 1:31
    was working fine.
  • 1:31 - 1:34
    It brings us wherever we are, and still
  • 1:34 - 1:37
    the carousel is working. Okay, so we're
  • 1:37 - 1:38
    going to
  • 1:38 - 1:42
    open this contact dot html, in Dreamweaver, to
  • 1:42 - 1:44
    make the, um, the contact form.
  • 1:44 - 1:48
    So, let me open the file, uh, from my root
  • 1:48 - 1:51
    folder. I'm going to open my contact dot html
  • 1:51 - 1:55
    in Dreamweaver. Open with the Adobe
  • 1:55 - 1:56
    Dreamweaver.
  • 1:56 - 2:01
    Okay, so first, I don't want to keep, uh,
  • 2:01 - 2:03
    this, the other three columns.
  • 2:03 - 2:06
    Um, and then the volunteer, adopt and
  • 2:06 - 2:08
    donate, and also I don't want to keep
  • 2:08 - 2:10
    this coding information part. So,
  • 2:10 - 2:14
    in my dom panel, under container, uh, the
  • 2:14 - 2:17
    row, that's the one where I have these
  • 2:17 - 2:20
    three columns of info, so let me just
  • 2:20 - 2:22
    delete the whole thing.
  • 2:22 - 2:24
    And also,
  • 2:24 - 2:27
    I don't want to keep this accordion,
  • 2:27 - 2:29
    so delete it.
  • 2:29 - 2:31
    Okay, and also I just need to keep just
  • 2:31 - 2:35
    the one VR, the, uh, the um, break line tag.
  • 2:35 - 2:40
    Okay, so after contact us, the title, I
  • 2:40 - 2:42
    want to have some kind of a subtitle, so
  • 2:42 - 2:44
    please open,
  • 2:44 - 2:45
    um,
  • 2:45 - 2:48
    the file I provided. Please open this one
  • 2:48 - 2:52
    first, the form HTML code dot txt. So, um,
  • 2:52 - 2:55
    contact us today and get reply within
  • 2:55 - 2:57
    one to two business days.
  • 2:57 - 3:00
    So, we're gonna have that as a kind of
  • 3:00 - 3:03
    subtitle under contact us title. So, let
  • 3:03 - 3:05
    me copy this.
  • 3:06 - 3:10
    Back to Dreamweaver. Make sure
  • 3:10 - 3:12
    you're selecting the text, this center
  • 3:12 - 3:17
    contact us, choose that tab, and then open,
  • 3:17 - 3:21
    insert menu in HTML category.
  • 3:21 - 3:24
    I'm gonna insert in the paragraph.
  • 3:24 - 3:29
    Paragraph. After contact us title, after.
  • 3:29 - 3:33
    And let me center
  • 3:33 - 3:36
    the text, and then I'm going to just
  • 3:36 - 3:38
    paste
  • 3:38 - 3:40
    the text I copied.
  • 3:40 - 3:43
    So, contact us today and get reply with
  • 3:43 - 3:45
    the next one to two business days. Okay.
  • 3:45 - 3:48
    Let me save it. No, I don't want to save
  • 3:48 - 3:50
    it, I will just keep going. Okay, so after
  • 3:50 - 3:54
    that, now I want to have, uh, uh, the form.
  • 3:54 - 3:57
    Okay. So, please open
  • 3:57 - 4:02
    this again, and then, please
  • 4:02 - 4:05
    select all these lines,
  • 4:05 - 4:08
    and copy,
  • 4:08 - 4:11
    and back to Dreamweaver.
  • 4:11 - 4:16
    And then, in the code area after this
  • 4:16 - 4:18
    paragraph, uh, contact us today we just
  • 4:18 - 4:20
    pasted.
  • 4:21 - 4:23
    To break the line,
  • 4:23 - 4:26
    and we're going to just paste it here.
  • 4:26 - 4:29
    Control, click and paste it.
  • 4:29 - 4:31
    Okay, now,
  • 4:31 - 4:33
    we have a form,
  • 4:33 - 4:35
    which is not pretty.
  • 4:35 - 4:39
    Okay, now we're going to stylize it using
  • 4:39 - 4:42
    the style dot css. Remember that , yeah in the
  • 4:42 - 4:45
    files tab, we already created a style dot css
  • 4:45 - 4:48
    here. Okay, so please open the file
  • 4:48 - 4:51
    is here. Now,
  • 4:51 - 4:57
    open this time form CSS code. This one.
  • 4:57 - 5:00
    Then, from the very top line, I'm gonna
  • 5:00 - 5:02
    copy the whole thing. Highlight
  • 5:02 - 5:05
    everything.
  • 5:06 - 5:10
    Copy, oops, sorry.
  • 5:11 - 5:15
    Copy this and back to style dot css.
  • 5:15 - 5:18
    After the last bracket I'm gonna give
  • 5:18 - 5:19
    some space.
  • 5:19 - 5:21
    Hit the return key several times and let
  • 5:21 - 5:24
    me paste it.
  • 5:24 - 5:25
    Container.
  • 5:25 - 5:28
    Okay. And then
  • 5:28 - 5:29
    highlight
  • 5:29 - 5:31
    this container,
  • 5:31 - 5:33
    that thing,
  • 5:33 - 5:38
    and paste, copy, this line,
  • 5:38 - 5:42
    and then go to your contact dot html.
  • 5:42 - 5:46
    See, it is already applied. And then, in
  • 5:46 - 5:49
    your contact form,
  • 5:51 - 5:55
    contact form, you see the form ID is
  • 5:55 - 5:59
    contact, and the class. So, in this section,
  • 5:59 - 6:01
    the class name is gonna be that
  • 6:01 - 6:05
    container. So, let me paste it.
  • 6:06 - 6:08
    Container.
  • 6:08 - 6:09
    Okay.
  • 6:09 - 6:11
    So, it looks good. It looks much better now.
  • 6:11 - 6:17
    So, let me save my styles first.
  • 6:17 - 6:22
    Also, let me save my contact dot html.
  • 6:22 - 6:25
    And let me preview it.
  • 6:26 - 6:28
    Refresh. See?
  • 6:28 - 6:32
    I already have it.
  • 6:32 - 6:37
    And then this is the fully responsive,
  • 6:37 - 6:40
    which is pretty cool.
  • 6:40 - 6:44
    Okay, and then, so the visually it is okay.
  • 6:44 - 6:48
    But now I, we need to, uh, assign the, uh,
  • 6:48 - 6:50
    the actual function, so we can
  • 6:50 - 6:52
    communicate with people.
  • 6:52 - 6:55
    So, I can email, uh, or give, uh, other people,
  • 6:55 - 6:59
    they can email us.
  • 6:59 - 7:02
    So, that is the PHP. But the one thing is,
  • 7:02 - 7:05
    the PHP is the server side language.
  • 7:05 - 7:08
    Since we weren't working on the
  • 7:08 - 7:10
    offline things, offline status, so it's
  • 7:10 - 7:13
    not going to be working. But, um, once we
  • 7:13 - 7:15
    complete this instruction, this tutorial,
  • 7:15 - 7:17
    uh, and then once you have your, the
  • 7:17 - 7:20
    actual live server, then you can just
  • 7:20 - 7:22
    upload everything on your server. Then it
  • 7:22 - 7:26
    should work. So now, next step is, go back
  • 7:26 - 7:29
    to here. We're going to create a one new
  • 7:29 - 7:29
    file.
  • 7:29 - 7:32
    In your files tab
  • 7:32 - 7:34
    choose anything,
  • 7:34 - 7:37
    volunteer dot html with a style dot css, and hold
  • 7:37 - 7:39
    down the control or right click. Click
  • 7:39 - 7:41
    somewhere. We're going to create a new
  • 7:41 - 7:44
    file. This time this file's name is gonna
  • 7:44 - 7:46
    be,
  • 7:46 - 7:49
    contact
  • 7:49 - 7:52
    form dot PHP.
  • 7:52 - 7:54
    Contact form dot php.
  • 7:54 - 7:58
    Okay, now open
  • 7:59 - 8:02
    PHP code dot txt.
  • 8:02 - 8:06
    Copy this whole thing.
  • 8:06 - 8:08
    Copy, and now,
  • 8:08 - 8:11
    back to
  • 8:11 - 8:13
    contact.
  • 8:13 - 8:17
    Open this contact form dot php. Open it.
  • 8:17 - 8:19
    It will ask you,
  • 8:19 - 8:21
    uh, since we don't have a live server for
  • 8:21 - 8:25
    now, I would say no, and no.
  • 8:25 - 8:26
    Then,
  • 8:26 - 8:29
    select the whole thing,
  • 8:29 - 8:32
    and paste it.
  • 8:32 - 8:36
    The ph form we we just copied.
  • 8:36 - 8:39
    And then now we just need to change the
  • 8:39 - 8:40
    value here.
  • 8:40 - 8:44
    So, first thing is, that is the last thing,
  • 8:44 - 8:47
    the submit button. So, go to your
  • 8:47 - 8:49
    contact dot html.
  • 8:49 - 8:52
    Select your submit button. So buttons
  • 8:52 - 8:54
    name is a submit.
  • 8:54 - 8:57
    I'm going to highlight this.
  • 8:57 - 9:00
    Let me copy.
  • 9:00 - 9:02
    I can type people, just to make sure I'm
  • 9:02 - 9:04
    going to copy and paste it, and go back
  • 9:04 - 9:07
    to our contact form dot php
  • 9:07 - 9:11
    in the post section.
  • 9:11 - 9:13
    Paste it.
  • 9:13 - 9:17
    Okay, so what we're doing now is, we copy
  • 9:17 - 9:20
    and paste the form, each form field name,
  • 9:20 - 9:24
    to their respective sections.
  • 9:24 - 9:25
    Okay.
  • 9:25 - 9:27
    Though, so I will repeat the same thing.
  • 9:27 - 9:30
    Next thing is that the, uh, the name.
  • 9:30 - 9:33
    So, back to our contact.
  • 9:33 - 9:35
    So, uh, name.
  • 9:35 - 9:39
    That is this. Input name is name.
  • 9:39 - 9:42
    So, let me copy this.
  • 9:42 - 9:45
    And contact form.
  • 9:45 - 9:47
    Name.
  • 9:48 - 9:50
    Paste it.
  • 9:50 - 9:53
    Next thing is a subject. So, um, subject
  • 9:53 - 9:57
    input name, subject, here.
  • 9:57 - 10:00
    That is a subject.
  • 10:01 - 10:04
    Copy, contact form,
  • 10:05 - 10:09
    and paste it.
  • 10:09 - 10:14
    Next thing is the, um, made from.
  • 10:15 - 10:19
    Your email address here, that is email,
  • 10:19 - 10:23
    that's the input name.
  • 10:23 - 10:24
    Copy,
  • 10:24 - 10:27
    contact form,
  • 10:28 - 10:29
    and
  • 10:29 - 10:30
    paste it.
  • 10:30 - 10:33
    Next.
  • 10:33 - 10:35
    Message.
  • 10:35 - 10:37
    Input name here
  • 10:37 - 10:40
    as a message.
  • 10:42 - 10:46
    Oops, let me highlight again.
  • 10:46 - 10:51
    Copy and contact form dot php.
  • 10:51 - 10:54
    Message is message.
  • 10:54 - 10:58
    Okay, so we are getting in there. Now, mail
  • 10:58 - 11:00
    two.
  • 11:00 - 11:04
    That's gonna be email address.
  • 11:04 - 11:06
    Your email address, or your business
  • 11:06 - 11:08
    email address, or your personal email
  • 11:08 - 11:11
    address. So, since we're, uh, we don't have a
  • 11:11 - 11:13
    live server for now, I'm just going to
  • 11:13 - 11:16
    type that kind of, uh the uh, made up, uh, the
  • 11:16 - 11:18
    email address, New Hampshire Humane
  • 11:18 - 11:21
    Society, uh, at
  • 11:21 - 11:24
    let's say at gmail dot com.
  • 11:25 - 11:28
    So, this is the, uh, you're the recipient's
  • 11:28 - 11:32
    email address. Okay. And the next thing is,
  • 11:32 - 11:36
    uh, scroll down, you're gonna see that, uh,
  • 11:36 - 11:40
    location after send page.
  • 11:40 - 11:42
    So, highlight this text right before this
  • 11:42 - 11:45
    question mark. So, we're gonna type here
  • 11:45 - 11:49
    the page URL to be redirected to the
  • 11:49 - 11:52
    after submitting the form.
  • 11:52 - 11:55
    So, in this case, since we are not in, uh,
  • 11:55 - 11:57
    we're not in the live server, we're not
  • 11:57 - 12:00
    online, but let's say that,
  • 12:00 - 12:01
    um,
  • 12:01 - 12:04
    HTTPS
  • 12:04 - 12:11
    slash www dot, uh, New Hampshire Humane
  • 12:11 - 12:13
    Society
  • 12:13 - 12:15
    dot org,
  • 12:15 - 12:17
    slash,
  • 12:17 - 12:18
    contact,
  • 12:18 - 12:21
    dot HTML,
  • 12:21 - 12:22
    slash.
  • 12:22 - 12:25
    So, that's going to be the URL. So, after
  • 12:25 - 12:28
    hitting the submitting button, and then, um,
  • 12:28 - 12:31
    your website will be direct, redirected
  • 12:31 - 12:32
    to this URL.
  • 12:32 - 12:34
    Okay. So,
  • 12:34 - 12:37
    let me save it.
  • 12:38 - 12:39
    And then,
  • 12:39 - 12:43
    let me go back to a contact dot html. So, uh,
  • 12:43 - 12:46
    in their contact form,
  • 12:46 - 12:48
    we
  • 12:48 - 12:50
    made a link to on this container and
  • 12:50 - 12:54
    class name, and then action is fill.
  • 12:54 - 12:56
    We're going to make a link to those, that
  • 12:56 - 12:59
    PHP file, which is a contact form dot php.
  • 12:59 - 13:01
    So, I'm going to just type it.
  • 13:01 - 13:03
    Contact.
  • 13:03 - 13:08
    it already, uh, shows me, form dot php.
  • 13:08 - 13:11
    And save it.
  • 13:12 - 13:15
    So, we are all done. So, let's
  • 13:15 - 13:16
    view it
  • 13:16 - 13:20
    online. Let me refresh.
  • 13:20 - 13:25
    So, in my home page, this is my home.
  • 13:25 - 13:27
    About us page.
  • 13:27 - 13:29
    Volunteer.
  • 13:29 - 13:30
    Adopt.
  • 13:30 - 13:33
    And contact here.
  • 13:33 - 13:36
    if I click on submit it, it asks me this,
  • 13:36 - 13:38
    please fill out this field. So, we can
  • 13:38 - 13:40
    just type it.
  • 13:40 - 13:43
    Okay. So, again, for now it's not working,
  • 13:43 - 13:46
    but once you have your live server, and
  • 13:46 - 13:49
    once you upload everything online, uh,
  • 13:49 - 13:52
    including your style dot css and then your
  • 13:52 - 13:54
    contact form, that PHP file together, it
  • 13:54 - 13:56
    should work.
  • 13:56 - 13:59
    So, that's it. So, I hope you have this,
  • 13:59 - 14:01
    you have the series of tutorials, uh, help you
  • 14:01 - 14:04
    to build up the your the first website.
  • 14:04 - 14:07
    And then, um, thanks for watching, and I
  • 14:07 - 14:10
    will see you next time.
Title:
Bootstrap in Dreamweaver for beginners (Part 3). Contact Form with free source code.
Description:

more » « less
Video Language:
English
Duration:
14:13

English subtitles

Revisions Compare revisions