How to insert Web-Forms
Cool-Box provides you a possibility to have the input from your Web-Forms directly sent to your mail-account. This «form2mail» script makes your Web-forms indipendent from the users local mal configuration.
How it is done
Insert the script-location into the «action» setting
of your form, use «methode="post"» :
<form action="http://www.coolbox.ch/cgi-bin/form2mail.cgi" method="post">
The value of all elements in your form will be listed in a mail as follows:
There are some Special Fields:
The E-Mail address, where the mail is sent to. Usually one of your mailboxes.
To prevent misuse, the domain of this mailbox has to be hosted at Cool-Box.
Typically this field is set as hidden (not changeable by the user) in the code.
<input type="hidden" name="toMail" value="email@example.com">
The E-Mail address of the user who filled out the form.
Typically an input field.
<input type="text" name="fromMail">
For security reasons not supported anymore!
Longer comments, usually in feedback forms. The content of this field will be placed at the end of the Mail.
Typically a multiline text entry field.
<textarea name="message" cols="35" rows="5"></textarea>
After submiting the form the user will be directed to a new page. Here you can provide some feedback («Thank you for filling out our survey...»).
Specify the full URL of the confirmation page, including «http://...».
Typically this field is set as hidden.
<input type="hidden" name="location" value="http://www.yourdomain.tld/confirm.html">