



FORMMAIL TUTORIAL.To send information entered in a form at a website, you need some kind of program. Contrary to what many might think, the browser itself hasn't a clue what to do when the user hits the "Submit" button. The browser desperately needs help. When a user has your form in his browser, it exists in two places simultaneously: Both downloaded to his computer and residing in your server. Therefore, you can choose to use either the user's individual configuration and applications or something you have set up on the server-side to assist the browser TAKE CONTROLIf you choose the former, to utilize whatever the user might or might not have in his computer, you (and the user) will sometimes bump into problems. You don't know if he has an e-mail client to use for sending the form. You don't know if he has a working smtp-account for outgoing mail. You don't know if he has set his preferences to handle the tasks properly. You don't know if the browser he's using will act as you want (yes, some browsers will not send the form but instead tries to launch the user's mail client with a new message). You don't know if his mail server is working or if he is behind a firewall or within a network that might cause him problems. You don't know if he's using his computer as a fish tank, etc.... If you instead decide to install a script on your server to process the form, you will know and gain control. Then, it doesn't matter how peculiar the user's individual computer preferences are, he will be able to send the form input without problems anyway. INSTALLING THE SCRIPTIf you haven't installed a formmail before, you might be somewhat hesitant. But relax. If you're smart enough to put together a form, you will fix the script in an hour or less (assuming you haven't found a completely enigmatic version. There are heaps of odd, free formmail scripts out there). In this example, you need to have a host that's supporting the script language "perl" and has a "sendmail" function. You also need access to your site's "cgi-bin" directory, where the script will reside. If your site is hosted by a regular, commercial host who is charging for the hosting, this will likely not be a problem. Ask him/her/them/it. (If you're on a "free" host like Geocities and similar, I strongly doubt they will provide what you need. Sorry.) When the three prerequisites above are met and
confirmed, you need a good formmail
script. As mentioned, you can find tons of free ones, but we have never seen
a better one than NMS Formmail from sourceforge. Add to that, it is easily
configured and comes with excellent and detailed instructions (kudos to the
people who
made it!). Download the "NMSFormMail.zip" from here: If you are able to tie your own shoelaces, you will figure out the rest from here. Oh, there's one more thing (isn't it always?): you might need to check/change the "permissions" of both the form and the formmail script to make it work if you're hosted on a Unix server. It's also called to set the "CHMOD". If that is required, you could either go to the Dreamweaver exchange at www.macromedia.com and get the extension called "Set permissions" or go to e.g. www.versiontracker.com and get a free FTP-client. INSTALLATION, STEP-BY-STEP
Done. Congratulations. Your visitors will now be able to reach you fast and easily!
|
NEW!Personal ads for and by expats in Vietnam. Intro offer: Free ads! Saigon Classifieds Hanoi Classifieds |
![]() Head Office: Garvaregatan 9A • 652 20 Karlstad • Sweden • Telephone: +46-(0)54-690015 • E-mail: Click here Representation Vietnam: Ho Chi Minh City • Vietnam: • E-mail: Click here web design by © proformica marketing consultants 2006 |
|
