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

Sending data to an email address

From: Creating a First Web Site with Dreamweaver CS4

Video: Sending data to an email address

In order to send this contact form data, what I need to do is I need to upload this page and when I click Submit, I need to send this data to what's called a contact form mailer. First step is to upload this page, so I do need to find a hosting provider. So for instance, I'm currently using Go Daddy, but you can use any sort of Web hosting provider you want. But from them you are going to get three things and these are just three things to remember.

Sending data to an email address

In order to send this contact form data, what I need to do is I need to upload this page and when I click Submit, I need to send this data to what's called a contact form mailer. First step is to upload this page, so I do need to find a hosting provider. So for instance, I'm currently using Go Daddy, but you can use any sort of Web hosting provider you want. But from them you are going to get three things and these are just three things to remember.

You're going to get sort of an IP address, or an FTP address to upload the site to, but you also need a username and password. It can often be your login name and password. But you need those three things and then you can go ahead and upload the site and from there, they're going to provide you a tool in this case, this form mail. That's what they're going to provide to you to sort of finish the process of sending that contact form data to an email address.

First thing I'm going to do is sort of based on this information, my login username and password and the FTP address, I could go ahead and setup my site. So that's the first step, setting up this site in order to upload this page. From the Files panel, I'll expand that up some. I'll click Manage Sites and I'm going to create a new site and it's going to walk me through defining a site. So, I'm going to say Jane Doe Contact Form, because that's what I'm doing in this case.

I can call it whatever I want. I could give it an HTTP address if I want to, but again the purpose of this is just to get my contact form working. Do I want to use any of this server technology? No, I'm just going to upload the page. Where on your computer do you want to store your files? So again, I want to edit my local copies and then I want to upload. So let's define my sort of a local copies and it's going to be in this Chapter 07 > 02 Begin folder.

That's where all my files are going to exist and then, How do you connect to your remote server? And this is the sort of most important part, because I'm going to change this to FTP. So from here, this is where I'm going to use that information. It's going to ask me, What's the hostname or FTP address of your Web server? Well, it happens to be ftp .janedoephotography.com. So, it's going to be something similar to this. It might be ftp and then maybe two forward slashes.

In this case it's just the dot, but nonetheless, you are going to get the FTP address from your hosting provider, and I don't want to store them in any particular server location. It's just going to put it all files at the root and then I want to provide them with a login and then a password and I could even Test Connection. So, congratulations you've connected to your Web server successfully. I'll click Next.

I'm not going to worry about checking in and checking out. Click next again. I get a Summary. Everything looks good. So I can click Done and now it appears in my Managed Sites list. Jane Doe Contact Form. To keep an eye on, how the Files panel changes. So I'm going to click Done. Okay. So now, what I want to do is upload this contact.html page. In fact, I can select multiple pages. In this case, the contact.html, the css, the images, because obviously there are images on this page and SpryAssets, because there is Spry here as well as Scripts.

So any scripts that are in this folder, I'm going to upload that as well. And lastly the Library because I'm using this library item at the top. With all of those selected, all I need to do is come up here and go to Put File(s). I'll click Put. And that also asks me, hey do you want to put the dependent files, so there might be sort of other files and maybe I didn't select that this page it might be using, and I'm going to say Yes. There seems to be some other files on the server and it doesn't have their date, so it's saying hey, do you want to upload all of these anyway? Even though you're not sure if the latest ones are on the server or not.

Nonetheless, I know I need to upload these files and that's exactly what's going on here. It's uploading all of these files. The images folder is probably going to be the largest. But again the idea is just to get this contact form up there then what I really need to do is test this out. I have that uploaded. In fact I can go to a Web browser and type in janedoephotography.com/ contact.html. Here is my page.

Here is my contact form. But the thing is as I haven't set up this button. So that's my next step is to send this data to a particularly unique server technology provided by the hosting company. What I need to do is go back to hosting control center and the hosting company will provide this form mailer form. So any forms that are sent to Go Daddy or basically through this site, it's going to send that form data to this email address.

And that's all you need to do. Just type that right in there. So that's all the information they need. A lot of times, the hosting company will provide some Help Center and really you're going to look to this location for any sort of form you might want to use. And again we're dealing with Windows Hosting Form Mailer and I'm going to make sure I'm using this PHP. But in general all I have to use, and all I have to really point to is this PHP page.

So, here the hosting company has provided me with this PHP page and the lot of code that I don't have to write myself. All I really need to know is this

I can go ahead and select that I can copy it. So this is the form action that needs to take place and anything within that sort of form red box, all that data will be sent to that email address. So, let's go back into Dreamweaver and here is my form, right here.

It's this red box and any of the forms in here that data will be sent to wherever I tell it to down here in the Action. So the action again is going to be gdform.php. So, it will be same. It's this page and I'm going to make sure it says post as well. We'll go back in here, gdform.php. In fact, if I'm curious about how this looks, I can go to Split view and I can see that the action says gdform.php and the method is post.

So that looks good. I'm going to go to Design view, since I've just changed this contact.html page and I'm going to go ahead and save it and then go to Contact and Put. In this case, I'm not going to put dependent files, because they're already uploaded and I can go to Firefox. Go to janedoephotography.com/ contact.html page, Refresh it, type in paul@paultrani.com, whatever comment I want to send and when you click Submit, it's going to send that data and just defaults to the home page.

Now, the next step is to check my email that I have defined back in my hosting control center to see if I have received that email. So, here I'm in my email account. That is the account that the email was sent to and there it is. Nothing too fancy because it is email, but in general it lists the content that was sent through that form. Again, this technology was provided by the hosted company. So as long as my site is uploaded and I'm passing the data to the form they provide, it will send the email just as expected.

Show transcript

This video is part of

Image for Creating a First Web Site with Dreamweaver CS4
Creating a First Web Site with Dreamweaver CS4

32 video lessons · 51534 viewers

Paul Trani
Author

 

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 Creating a First Web Site with Dreamweaver CS4.

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.