dreamweaver/courses/in/london - emailing form responses
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver/courses/in/london - Emailing Form Responses

dreamweaver/courses/in/london - Emailing Form Responses

The UK's most regular instructor-led training courses.
Training information: dreamweaver/courses/in/london · Dreamweaver training · Adobe dreamweaver training

resolvedResolved · Low Priority · Version Standard

Emailing Form Responses

Vanessa has attended:
Dreamweaver MX Introduction course
Dreamweaver MX Intermediate course

by - delegate Vanessa [2 posts] (2006 Nov 30 Thu, 09:45) replyReply

Hi

Thanks for this great opportunity of some support. I want to create a response form on my site and have the information completed emailed to me. How do I acheive that?

Thanks

Dreamweaver CS3 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
CS3 2009 Jan 15 Thu + 16 Fri Bloomsbury 5 book now £495 £495
CS3 2009 Feb 12 Thu + 13 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Mar 12 Thu + 13 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Apr 16 Thu + 17 Fri Bloomsbury 8 book now £395 £415
CS3 2009 May 14 Thu + 15 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Jun 11 Thu + 12 Fri Bloomsbury 8 book now £395 £415
Full Schedule: See all 11 Dreamweaver CS3 course dates.
Bookings currently available until 12th November 2009.

Server side scripting

by - trainer Rich platinum contributer[744 posts] (2006 Nov 30 Thu, 11:17) replyReply

Hi Vanessa,

No problem, it's our pleasure.

As you would have learnt how to create a form in our Dreamweaver Intermediate course, I assume you can make a form with all the elements you require (like text fields, drop-down boxed etc.)

You can put "mailto:yourname@domain.com" in the ACTION part of your form to get the data sent, but your e-mail will be unformatted, the visitor will see one of more security messages and it looks very unprofessional.

While anyone can create a form in Dreamweaver, to take proper "action" on the data submitted requires some kind of CGI or 'server side' script.

There are many free services out there, such as bravenet who can supply with you step-by-step instructions on adding a simple form to your web site, using their server and CGI files. I have used bravenet in the past, and have been very satisfied. It's all free. Another one is MyContactForm, which I haven't used.

Your web site hosting provider may also have an e-mail form feature that may be included in your account, or available to upgrade for a small fee (either once off, or per billing period).

If you want more flexibility, and hence wanted to do the processing, formatting and sending on your own server or web hosting space, you need to make sure you have some kind of server side language available such as CGI, PHP, ASP etc. Your hosting company or Web Development team should be able to tell you this.

You can write the code yourself, or search Google to find a ready-written script and instructions. For example, Dimac have a popular add-on called JMail, which would work with ASP. They have a free version available.

I hope this helps.

Regards, Rich.

RE: Emailing Form Responses

by - trainer David gold contributer[428 posts] (2006 Nov 30 Thu, 11:18) Edited on 2006 Nov 30 Thu, 11:19 replyReply

Hi Vanessa

There are a number of methods to do this, but they do depend on the we hosting that you have, as this depends on which code language to use. The way I would do this is to use a script, either javascript or asp or php. The script will strip the data from you web form and send the content to you via email. Below is a code snippet in ASP. Please note that ASP requires a Windows based hosting.

<%


' declare variables
Dim EmailFrom
Dim EmailTo
Dim Subject
Dim Name
Dim Address
Dim Telephone

' get posted data into variables
EmailFrom = "someone@hotmail.com" 'This is who sends you the email
EmailTo = "someone@hotmil.com" 'This is sends the email to you
Subject = "email"
Name = Trim(Request.Form("Name"))
Address = Trim(Request.Form("Address"))
Telephone = Trim(Request.Form("Telephone"))

' validation
Dim validationOK
validationOK=true
If (Trim(Name)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("yourerrorpage.htm?" & EmailFrom)

' prepare email body text
Dim Body
Body = Body & "Name: " & Name & VbCrLf
Body = Body & "Address: " & Address & VbCrLf
Body = Body & "Telephone: " & Telephone & VbCrLf

' send email
Dim mail
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.To = EmailTo
mail.From = EmailFrom
mail.Subject = Subject
mail.Body = Body
mail.Send

' redirect to success page
Response.Redirect("yournextpage.htm?" & EmailFrom)
%>


There is some simple validation contained in the script to make sure certain fields are filled in and then if all is ok, the email is sent to you and the website will forward the user to the page you enter. If it fails it will take them to an erro page. You will need to create both the error and success page in dreamweaver using HTML. To creat the email form you will need to select a blank ASP page or the language that you want to use and this will save the page as e.g anemailform.asp. You will need to link to this page so the user can get to the form.

Hope this helps, if you get back to me with the language you are going to use then I can advise you on the exact scripting code that you will need.

David


Related articles

· How Dreamweaver Courses for Your Marketing Staff Can Cut IT Payroll Expenses
· Macromedia Dreamweaver: An Introduction
· The Importance of a Professionally Designed Website
· Powerhouse Tips from Dreamweaver Training
· Learn How to Build Complete Websites in Three Days

Dreamweaver tip:

Paragraph formatting

in Dreamweaver if you type in text and press entre you get double line spacing.

To avoid this hold down the shift key and then press Enter for a soft break

View all Dreamweaver hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz