Skip to main content
Participant
August 30, 2006
Question

Urgent Help required

  • August 30, 2006
  • 5 replies
  • 516 views
Hi,
First of all let me tell you that I am new to Dreamweaver and in learning process. Well I want to know one thing here. I am creating a form in dream weaver 8. It includes just a text field, a text area and a submit button. What I want to do is to send the information in the fields when the button is clicked. Please can any one tell me how to do it step by step. Waiting for your replies and thanks for giving your time. Please reply quick.

Cheers,
Adeel
This topic has been closed for replies.

5 replies

Angell EYE
Inspiring
September 1, 2006
Say you've got a text field called frmName and another called frmPhoneNumber. You want to email the submitted information to yourself at myself@domain.com.

Setup your form and set the action to a page called emailData.asp. emailData.asp would have the following if you're using ASP:

customerName = Request.Form("frmName")
customerPhone = Request.Form("frmPhoneNumber")
emailBody = "Name: "&customerName&"<br>Phone Number: "&customerPhone&""

Set myMail = CreateObject("CDO.Message")
myMail.Subject = "User Submitted Data"
myMail.From = "page@domain.com"
myMail.To = "myself@domain.com"
myMail.HTMLBody = emailBody
myMail.Send
Set myMail = Nothing

Response.Redirect("page_you_want_them_to_see_at_end.asp")

This method uses CDOSYS on a Windows server using ASP.

Inspiring
August 31, 2006
The mailto method is quite unreliable. Maybe it's not working because your
email client just doesn't work with mailto:.

There are only two ways to process form data -

1. Use mailto:name@domain.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 2 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.).

You would have to decide which of these methods is best for your needs,
but if it's Method 2, then start by asking your host what they provide for
form
processing.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"specialmee" <webforumsuser@macromedia.com> wrote in message
news:ed69vo$a2k$1@forums.macromedia.com...
> Hi, yeah i checked it ther and I am using the mailto: method but it is not
> working. can you tell me why and correect the code. here is the code...
>
>
> <form id="form1" name="form1" method="post"
> action="mailto:ldniit@yahoo.com">
> <label>E mail Address:<br />
> <input type="text" name="textfield" />
> </label>
> <p>
> <label>Comments: <br />
> <textarea name="textarea"></textarea>
> </label>
> </p>
> <p> </p>
> <p>
> <label>
> <input type="submit" name="Submit" value="Submit" />
> </label>
> <label>
> <input type="reset" name="Submit2" value="Clear" />
> </label>
> </p>
> </form>
>
> Please do reply quick I will be very thankful
>


Participant
August 31, 2006
Can you please any exapmples of which email domains have allowed this mailto thing? I mean someting like hotmail, yahoo .....I hope u understand my question. Waiting for your replky and thanks a lot for your time.
Participant
August 31, 2006
Hi, yeah i checked it ther and I am using the mailto: method but it is not working. can you tell me why and correect the code. here is the code...


<form id="form1" name="form1" method="post" action="mailto:ldniit@yahoo.com">
<label>E mail Address:<br />
<input type="text" name="textfield" />
</label>
<p>
<label>Comments: <br />
<textarea name="textarea"></textarea>
</label>
</p>
<p> </p>
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
<label>
<input type="reset" name="Submit2" value="Clear" />
</label>
</p>
</form>

Please do reply quick I will be very thankful
Inspiring
August 30, 2006
Please read the answer you have already gotten before posting the identical
question on another forum.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"shaxxx" <webforumsuser@macromedia.com> wrote in message
news:ed45pv$ong$1@forums.macromedia.com...
> Hi,
> First of all let me tell you that I am new to Dreamweaver and in learning
> process. Well I want to know one thing here. I am creating a form in dream
> weaver 8. It includes just a text field, a text area and a submit button.
> What
> I want to do is to send the information in the fields when the button is
> clicked. Please can any one tell me how to do it step by step. Waiting for
> your
> replies and thanks for giving your time. Please reply quick.
>
> Cheers,
> Adeel
>


Inspiring
August 30, 2006
a form can be directed anywhere, and do anything. search for what your form
does, and you should find some relevant info here.
--
If you haven't already, you would be well served searching through the
archives for the answer to your question. The archives can be found here:

http://groups.google.com/group/macromedia.dreamweaver
http://groups.google.com/group/macromedia.dreamweaver.appdev