Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Email form

New Here ,
Feb 16, 2008 Feb 16, 2008
hi,
im really stuck on creating a comment form which can then be sent to a selected email adress i can make the form but apparently when you insert the text field you need to set the id or something and i cant see any where to do that

please help someone or can someone please give me a step by step guide on how to do this please
thanks
ben
TOPICS
Server side applications
254
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2008 Feb 17, 2008
> please help someone or can someone please give me a step by step guide on
> how
> to do this please

How to create a form? Did you start with DW's F1 help on form creation?

Once you have the form created, you then have to add the capability to
process the form's data.

There are only two ways to process form data -

1. Use mailto:name@example.com as the action of the form
2. Use a server-side scripting method to a) harvest the form's data, b)
process it in some manner, e.g., enter it into a database, c) formulate and
send an email to one or more email recipients, and d) redirect the visitor
to some ending page

Method 1 is quite simple, and is also the least reliable. It depends both
on your visitor having an email client already installed on their computer -
this eliminates public computers, or home users without email clients
installed (more and more it seems) - and on the installed email client
responding to
the mailto call. It is not possible to use this method *and* send the
visitor to a
thank you page as well.

Method 2a is the preferred method, since it eliminates the problems of
method
1, but it means that you have to grapple with server-scripting somehow (ASP,
CF, PHP, perl, etc.).

Method 2b would be to use some third-party form processing, like
http://www.bebosoft.com/products/formstogo/.

You would have to decide which of these methods is best for your needs,
but if it's Method 2a, then start by asking your host what they provide for
form
processing. If it's 2b, then read their FAQ/instructions carefully.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"benmeredith" <webforumsuser@macromedia.com> wrote in message
news:fp7r6n$r4e$1@forums.macromedia.com...
> hi,
> im really stuck on creating a comment form which can then be sent to a
> selected email adress i can make the form but apparently when you insert
> the
> text field you need to set the id or something and i cant see any where to
> do
> that
>
> please help someone or can someone please give me a step by step guide on
> how
> to do this please
> thanks
> ben
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 19, 2008 Feb 19, 2008
LATEST
Try something like this:
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "your server ip address"
Mail.From = request.form("formnameEmail")

Mail.FromName = request.form("formnameName")

Mail.AddAddress request.form("formnameDept")
Mail.AddCC "you@domain.com"

' Mail.AddReplyTo = request.form("formnameEmail")

Mail.Subject = "Blah"

dtNow=Now()

bodyvar= " request.form("formnameName") "

Mail.Body = bodyvar
Mail.IsHTML = True

On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines