The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I don't know if Dreamweaver has something to help you do this specifically (have you searched the documentation?), but this is something fairly small so you should be able to code it by yourself without too much hassle. In the past I've simply adapted pre-made scripts I've found on the internet to suit my needs.

In the most basic form, you need to follow these steps (everything within a single PHP file, so the form is submitted to the same file):

Check if the form was submitted.

If it was, check if the required fields were filled in correctly. You should check the entered email address with a regular expression to make sure it is at least a valid address.

If everything is OK, send the email and do not output the form again. Either redirect to another page or display "email sent" message.

If there is something wrong, output the form HTML including the things the user already entered so they don't need to type it all over again. Perhaps include a small message to indicate exactly where they've done something wrong

If the submit button was not pressed, simply output the bare HTML form.

It is probably a good idea to add something to stop spambots from spamming your email. You can use a CAPTCHA, or a simple check box ("check this box if you're human") or even if you want to be original some method of your own (some people make the user solve a simple mathematical problem, like "what is 3 - 1 ?" - obviously the problem changes each time).

It's also a good idea to check that the form was submitted from that actual page, e.g. give the Submit button a less generic name than "submit", such as "zafar", and perhaps also check that the referrer header matches the page the form is on.