Need help with a web form. Don't laugh, please

I have a client who wants a form on her webpage that’ll end up in her e-mail inbox. I’m using Dreamweaver 8, and I know how to make the form, I just need to know how to get it to her inbox. Everything I’ve seen says there’s a script required, but I have no idea how to do that.

Any help is appreciated.

How are you building the form? When I need to do that, I POST it to a PHP file that calls the mail() function, as in

mail(“example@example.com”,“This is the message subject”,“This is the message text”);

There might be a way of doing that with scriping as well, but PHP has always worked for me.

Edit: Two tutorials on the mail() function:

I’m using HTML. I’m not a professional web designer; I’m doing this as a favor to someone. The simpler, the better.

There’s no way to do it with just HTML. You need PHP or some other scripting environment to do the task of creating and sending the e-mail.

That’s what I’m afraid of.

You can’t do it with straight HTML. HTML isn’t capable of interacting with email servers to send the form information to someone’s email. You must use PHP or ASP or another web technology. Furthermore, using PHP’s straight mail() function gets more complicated because hackers know how to mess with simple contact forms to do their spamming for them.

If you don’t want to learn PHP or ASP (and I don’t blame you if it’s just for a web contact form), I’d recommend using various sites that offer free contact forms online. Google turns up a bunch of promising ones: web contact forms - Google Search

Am I missing something?

I must be.

You CAN do a form in straight HTML my making the FORM action a mailto: link. What you get is decipherable by mere humans, but it isn’t pretty.

There are a lot of forms available to process e-mail. Matt’s Script Archive’s FormMail is one of the oldest and I’m not sure if it’s still good.

I have a slightly more complicated question on this line for people who deal with this more often: how do you avoid getting spammed to death? The last time I turned on a form in my website, I was instantly getting 80+ spams from it per day.

The main problem with the mailto form is that it requires that the user has their email client set up on that PC, and that they send it when it pops up. Anyone who just uses webmail, or is posting from a public PC, etc. etc., it won’t work for.

dracoi: That’s what captchas are for. :wink:

I found something that works for what I needed it for. The client is happy, and that’s all I want.

Thanks for the help, everyone.

MailForm is a Perl script, you put it inside your cgi-bin folder on your web server. Not too complicated to install and use.

Thanks for the not telling us how, you.

Sorry.

I went to the first link in the Google search that was linked to upthread. I had to tell it what I wanted the form to say, then I pasted the code. It works.