Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a simple e-mail form.

Status
Not open for further replies.

Manning

MIS
Sep 13, 1999
4
GB
Hi Guys,
I am basically trying to create a simple e-mail form for a website. All it is, is one text box and a submit button. with the message 'if you wish to recieve our newletter please enter you e-mail address and press submit'
Now there are websites out there who supply free forms, but I wish to learn for myself how this is done. I have one of those visual quickstart guide books, but all it does is show you how to create the form. So what I want to know is this.
1. how do I link the text field to the submit button, so that when pressed the e-mail address is sent off.
2. how do I link the submit button to my e-mail address.
3. How I link the submit button, so that when it is pressed a page appears saying thank you for your interest.
4. is there a way to do all this in design mode in dreamweaver MX, instead of have to write out complcated code.

I would be grateful for any help.
 
1. If both the text field and the submit button are in the same form. <form></form> then its automatically sent.

2. and 3. Interrelated. You could just add your email address to the action property of your form [action=mailto:you@server.com] but then you can't redirect to a thank you page. If you wan't a thankyou page and a good method of sending the form to your email, then you need either Javascript, or some server side code to complish both tasks.

4. The "action" option i just mentioned is the easy way, and can be done just using DW's property editor at the bottom of the screen,

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top