< 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 dreamyver
  • 0:12 - 0:15
    in part number one we created a bare
  • 0:15 - 0:18
    bone structure of 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 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 other one responsible
  • 1:03 - 1:06
    website uh using the Boost Tribune
  • 1:06 - 1:08
    remover 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.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.html
  • 1:51 - 1:55
    and remover con open with the Adobe
  • 1:55 - 1:56
    remover
  • 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 recording the 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.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 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 dreamiver
  • 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.css remember that yeah in the
  • 4:42 - 4:45
    files tab we already created a style.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.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.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 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.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 there were the other
  • 6:55 - 6:59
    uh other people 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 they weren't working on their kind
  • 7:08 - 7:10
    of offline things offline status so it's
  • 7:10 - 7:13
    not going to be working but um once we
  • 7:13 - 7:15
    completed 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 that 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.html with a style.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.php
  • 7:54 - 7:58
    okay now open
  • 7:59 - 8:02
    PHP code.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.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 reform 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.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.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.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 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 made up of the
  • 11:16 - 11:18
    email address New Hampshire Human
  • 11:18 - 11:21
    Society at
  • 11:21 - 11:24
    let's say gmail.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
    HTTP s
  • 12:04 - 12:11
    slash www dot uh uh New Hampshire human
  • 12:11 - 12:13
    Society
  • 12:13 - 12:15
    .org
  • 12:15 - 12:17
    slash
  • 12:17 - 12:18
    contact
  • 12:18 - 12:21
    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
  • 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.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
    are PHP file which is a contact form.php
  • 12:59 - 13:01
    so I'm going to just type it
  • 13:01 - 13:03
    contact
  • 13:03 - 13:08
    it also already assures me form.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 my 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.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
    here 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