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.

The best way would probably be to use a CGI program (either Perl, PHP, ASP, whatever). I say this because if you use the other method, the person filling out the form needs to have an email client set up on their machine, which isn't always possible on public or shared computers.

Looks like a nice article, but I'm using Mac OS 9, so I can't use PHP.

I used the "simple" method posted by mattjacob, but for some reason I cannot SEND the form in IE 5 for the Mac. (connection error) I tryed submitting the form on my PC at home and a popup message prompted me, which allows you to change the subject line of the e-mail. I clicked on SEND and bingo. It worked fine on the PC. Why doesn't it work cross platform?

Originally posted by guysmy 1) Does anyone suggest a specific CGI script? (free)
2) How can I change the subject of the e-mail?

Johntabita is right! FormMail is so popular that just about every ISP I've ever encountered already has it available for you. Just e-mail your tech support and tell them you want FormMail in a CGI directory on your site and ask them for the path to PERL.

The rest is simple:

Code:

<form method="POST" action="http://www.yoursite.com/cgi-bin/formmail.pl">
<!--This line tells the server what to do-->
<input type="hidden" name="recipient" value="youremail@whatever.com">
<!--This line tells the server every email address to send the input to-->
<input type="hidden" name="subject" value="PutYourSubjectHere">
<!--This is where you can enter a subject-->
<input type="hidden" name="required" value="realname, email">
<!--This makes these two fields required fields-->
<input type="hidden" name="print_config" value="realname, email">
<!--This puts these two fields in the header of the email and in the body also-->
<input type=hidden name="redirect" value="http://www.yoursite.com/thankyou.shtml">
<!--This redirects the browser to another page after they press the submit button-->
<input type=hidden name="print_blank_fields" value="1">
<!--This forces fields to be included in email even when there's no info in them-->

Originally posted by Skunk FormMail is also extremely badly written and very insecure. For an alternative that does exactly the same thing but was written by Perl experts who really know what they are doing see here:

Thanks for the headsup. I just downloaded a few of the scripts and I'm gonna check them out.

One stupid question though. And I hope I'm using the "correct" word to get the correct answer. How do I get a guestbook script result to "resolve" into a particular page design or template? Does that make any sense?

It depends on the guestbook script, but most (almost all I would have thought) will allow you to specify a basic template with at least a customisable header and footer for the guestbook page. You add your HTML to those template files and off you go. Some scripts may require you to create your own template and include the guestbook output in to it via SSI (provided your web server supports it).

Re: Forms to E-mail -- HELP!

Originally posted by guysmy
[B]I need to develop a little form for a client's site I'm working on. What I need to be able to do is some how get the info e-mailed to the client when someone fills the thing out. (I use Dreamweaver)

We do custom form mailers for people very cheaply. Drop me a line if you like.