Dreamweaver email forms

Reply

Join Date: Jul 2005
Posts: 3
Reputation: poes is an unknown quantity at this point 
Solved Threads: 0
poes poes is offline Offline
Newbie Poster

Dreamweaver email forms

 
0
  #1
Jul 12th, 2005
Im using dreamweaver. I want to have a "email us" page.

The person puts in there name,email..etc and it sends it to my mail box.

How do i do this? do i need to used a dynamic page?

Dreamweaver comes with email templates so or i have to do is fill the code in.
But i dont know what that is.

If anyones can help, please do.

thanks
please email me: everchange10@yahoo.co.uk
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 69
Reputation: bkendall is an unknown quantity at this point 
Solved Threads: 0
bkendall's Avatar
bkendall bkendall is offline Offline
Junior Poster in Training

Re: Dreamweaver email forms

 
0
  #2
Jul 12th, 2005
The basic Email form can probably be pulled from template example from DW like you mentioned, if not there are lots of examples on the web just google it. The portion you will have to cutomize is the form method and this depends on what scripting language you use and what your server supports again there are lots of examples o the web. One of the most popular is the php method.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 3
Reputation: poes is an unknown quantity at this point 
Solved Threads: 0
poes poes is offline Offline
Newbie Poster

Re: Dreamweaver email forms

 
0
  #3
Jul 12th, 2005
When i create my site does it have to be a dynamic page?

I just have a normal html homepage.It has a few buttons, one of the 'contact' . i want people to fill in there email name,etc and send it to me via a "send" button.

Can anyone help

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 69
Reputation: bkendall is an unknown quantity at this point 
Solved Threads: 0
bkendall's Avatar
bkendall bkendall is offline Offline
Junior Poster in Training

Re: Dreamweaver email forms

 
0
  #4
Jul 12th, 2005
your form page will be just like any other page except that it will have form tags

  1.  
  2. <form name="form1" id="form1" method="post" action="">
  3. Field Name:
  4. <input name="field name" type="text" id="field name" />
  5. </form>

the action=''''> is where you would need to use a langauge such as php which might look like this:

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
  2. "http://www.w3.org/TR/REC-html40/loose.dtd">
  3. <html>
  4. <head>
  5. <title>Contact Form</title>
  6. <meta http-equiv="Content-Type"
  7. content="text/html; charset=iso-8859-1">
  8. </head>
  9. <body>
  10. <?php
  11. if ($_SERVER['REQUEST_METHOD'] != 'POST'){
  12. $me = $_SERVER['PHP_SELF'];
  13. ?>
  14. <form name="form1" method="post"
  15. action="<?php echo $me;?> ">
  16. <table border="0" cellspacing="0" cellpadding="2">
  17. <tr>
  18. <td> Name:</td>
  19. <td> <input type="text" name="Name"> </td>
  20. </tr>
  21. <tr>
  22. <td> Subject</td>
  23. <td> <input type="text" name="Subject"> </td>
  24. </tr>
  25. <tr>
  26. <td valign="top"> Message:</td>
  27. <td> <textarea name="MsgBody"> </textarea> </td>
  28. </tr>
  29. <tr>
  30. <td> &nbsp;</td>
  31. <td> <input type="submit" name="Submit"
  32. value="Send"> </td>
  33. </tr>
  34. </table>
  35. </form>
  36. <?php
  37. } else {
  38. error_reporting(0);
  39. $recipient = 'me@myaddress.com';
  40. $subject = stripslashes($_POST['Subject']);
  41. $from = stripslashes($_POST['Name']);
  42. $msg = "Message from: $from\n\n".stripslashes($_POST['MsgBody']);
  43. if (mail($recipient, $subject, $msg))
  44. echo nl2br("<b>Message Sent:</b>
  45. To: $recipient
  46. Subject: $subject
  47. Message:
  48. $msg");
  49. else
  50. echo "Message failed to send";
  51. }
  52. ?>
  53. </body>
  54. </html>

You will need to check if you have access to a php server if not there are other methods that you can use. If all else fails you can send it via javascript, which is a dirty way to do it but will work.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 3
Reputation: poes is an unknown quantity at this point 
Solved Threads: 0
poes poes is offline Offline
Newbie Poster

Re: Dreamweaver email forms

 
0
  #5
Jul 12th, 2005
thanks alot

I just found out that my server doesnt support php. I'm learning alot (it was cheap and now i know why)

so the next best way?

cheers
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 69
Reputation: bkendall is an unknown quantity at this point 
Solved Threads: 0
bkendall's Avatar
bkendall bkendall is offline Offline
Junior Poster in Training

Re: Dreamweaver email forms

 
0
  #6
Jul 12th, 2005
you should find out what they do support
asp
coldfusion
JSP
CGI

then I can try and walk you through how to use what you have available
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1
Reputation: paintbalforjesu is an unknown quantity at this point 
Solved Threads: 0
paintbalforjesu paintbalforjesu is offline Offline
Newbie Poster

Re: Dreamweaver email forms

 
0
  #7
Aug 12th, 2005
you can more easily make an email form by simply typing the the action box of the form mailto:youremail@yourserver.com and in the enctyp feild text/plain but this can be an unreliable way and requires users to have an email client setup on their computer and working and if it fails it may fail invisibly. for more info go to http://www.macromedia.com/go/tn_14853
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1
Reputation: bobbyjones is an unknown quantity at this point 
Solved Threads: 0
bobbyjones bobbyjones is offline Offline
Newbie Poster

Re: Dreamweaver email forms

 
0
  #8
Aug 27th, 2005
I have some free ones that you could use email forms using flash or take as anexample and make your own.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 29
Reputation: xeno439 is an unknown quantity at this point 
Solved Threads: 0
xeno439 xeno439 is offline Offline
Light Poster

Re: Dreamweaver email forms

 
0
  #9
May 3rd, 2006
Originally Posted by bobbyjones
I have some free ones that you could use email forms using flash or take as anexample and make your own.
Those are cool, there is also a link on that site to some cool ones with attachment capability at http://www.flashattach.com Really cool!
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 200
Reputation: MaxMumford is an unknown quantity at this point 
Solved Threads: 2
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Posting Whiz in Training

Re: Dreamweaver email forms

 
0
  #10
Oct 25th, 2006
I had exactly the same problem. I used JMAIL with mine. this resolved the problem. This is where i got an example code: http://www.webwizguide.info/asp/tuto...l_tutorial.asp. If i were you, go ahead and download the sample forms from here: http://download.webwizguide.info/asp...orial_v1.0.zip. they contain 4 email samples and is very good for making jmail forms. Its fairly easy to pick up. The script will need you to put in your smtp server. This is a link which contains a link of many smtp servers: http://www.more-solutions.co.uk/support/email-smtp.html.

So there u go :cheesy:

good luck. If u need any more info, give me a bell (just remember, im not pro myself, but i recently had the same problem )
Ill solve somebody's thread someday! xD
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC