Our new CGI accounts provide our customers with access to a form-mailer
script. These scripts accept information gathered from an HTML
form and email that information back to a single address that
the customer specifies. As such, knowledge of HTML is needed to
make effective use of this service.
To use the service create and upload the form as normal. Bear
in mind that the script will sort the names of the items on the
form alphabetically when it composes the form response email,
and that it respects case. Here is the order the form-mailer script
recognizes:
- Uppercase Letters First
- Lowercase Letters Second
- Numbers Third
By naming form items appropriately it is possible to organize
response information as it is submitted.
HTML allows you to send the output from a form in two ways: get
or post. You may use either with our form-mailer script. Just
be sure to list the script in the action line as follows:
action=/cgi/gdform.cgi
Note that using the "get" method will limit the number
of characters that your form can send to our script. This limitation
is just part of the HTML and is not particular to GoDaddy.com.
Further, the size of response emails is capped at 100 KB. Since
the form-mailer will use plain text to send its messages this
will not be an issue in most cases.
As mentioned above, form responses will be sent by the script
to the email address that you specify. This setting is controlled
through Account Management on our site. Visit www.godaddy.com
and click on the "Welcome" link at the top to log in.
Once inside you will see a link labeled "Manage My Hosting
Accounts." Through this link you may type in the email address
that you would like our script to use for your form.
Lastly, there are three special fields that you may employ in
your form: subject, redirect, and email. The names of these three
fields must remain lowercase in order to work. You may make changes
along the following lines:
- The "subject" field controls the subject line
of the form response email
- The "redirect" field controls the page visitors
will see after submitting the form
- The "email" field controls the return address
for the form response email
Here is a sample of some HTML code showing how these form fields
are written:
<form
action="/cgi/gdform.cgi" method="post"> |
<input
type="hidden" name="subject" value="Form
Submission"> |
<input
type="hidden" name="redirect" value="thankyou.html"> |
First
Name: |
<input
type="text" name="FirstName"> <br> |
Last
Name: |
<input
type="text" name="LastName"> <br> |
E-Mail: |
<input
type="text" name="email"> <br> |
Comments: |
<textarea
name="comments" cols="40" rows="10"></textarea> <br> |
<input
type="submit" name="submit" value="submit"> <br> |
</form> |
In the above example our form-mailer script would place all the
responses from the form in an email with the subject line "Form
Submission" and use whatever the visitor to the site entered
in the fifth form field as the reply address for the message.
After submitting the form, the visitor would be taken to a page
named "thankyou.html" as confirmation that the form
had been sent. Create a form and give it a try to see it in action.
|