American Audio DCD-PRO240 User Manual Page 207

  • Download
  • Add to my manuals
  • Print
  • Page
    / 250
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 206
Freeway Reference: Working with Forms
207
207
Example form setup code:
<form method=POST action=/cgi-bin/FormMail.pl>
<input type=hidden name=recipient [email protected]>
<input type=hidden name=subject value=The email subject>
<input type=hidden name=redirect value=http://www.domain.com/thethankspage.html>
<input type=text name=email>
</form>
4a 4b
3a 3b
1 2
5a 5b
6
It all looks very daunting, but getting these instructions into Freeway is straightforward. Copy the script (it will likely have been sent
by email or will appear on the support section of your ISP’s web site) to your clipboard by selecting it and choosing Copy from the Edit
menu in whatever program your viewing it. Go to the Freeway page on which the form appears and choose Paste Special… from the
Edit menu. Now check the Form Setup dialog and the data will have appeared.
Alternatively, you can add the information yourself.
The first line of information which starts
<form and ends with a > needs to go in the Form Setup dialog. method=POST means that
you need to select POST from the Method popup. This is the most common setting for the Method. The text in quotes after action=
needs to go into the Action field. This is the link which actually calls up the form on the server. You must not put quotes around this as
Freeway will add quotes for you.
Any tags which start with
<input and contain type=hidden need to be added as Hidden fields in the Form Setup dialog. These are
invisible to the site visitor but are sent back along with the form for the script to pick up. You can often add additional hidden fields of
your own in order to return extra information from your form (for example so that you can recognize which page on your site the form
came from).
In this case, we have three hidden fields. Each has a name and a value. The name is in quotes after the text
name= and the value is in
quotes after value=. In each case you click the New… button in the Form Setup dialog. The text after name= goes in the Name field
and the text after value= goes into the Value field. You should not enter quotes in here as Freeway adds them for you.
Sometimes the script requires that certain fields are present—they are often called required fields. Often the visitor’s email address is
required in order to send the form. You can add these as normal form items on the page, and you must make sure that the Name field is
set correctly. The item in the example above (
input type=text name=”email”) would create a text field item on the page and set the
name of the item in the Text field item output settings panel in the Inspector palette to “email.”
Hidden fields
Note: This section refers to instructions in the example set out in the blue
tint panel above.
Here are some Hidden Fields, which may possibly be used in your form. The
“name” part of the name/value pair appears below in bold font:
recipient
instruction
3
Indicates where you want the email sent. The value is an email address. This
may be called send to in some forms.
subject
instruction
4
This is the subject you want the email to have when you receive it. The
value is something like “Web site form results” (without the quotes) or
anything you like.
redirect
instruction
5
The page to which you want to send the visitor after filling in the form. (This page might say “Thanks for filling in our form.”) The
value should be the full URL for the page—for example:
http://www.yourdomain.com/thanks.html
. You must create this page as part
of the web site and make sure it’s available on the server. If you don’t add the redirect field, a default message will appear instead
when the visitor submits the form. This may be called resulturl in some forms.
Less common hidden fields
required: This is a comma-separated list of the fields which the user must fill in. The value would be something like: email, realname,
address1, address2 and so on. (It’s a good idea to limit this to what is really required, and indicate those fields with an “*” on the
original form, as some people find long forms annoying.)
sort: Determines how the fields will be sorted in the email. The value would either be alphabetic or order: name1, name2, name3.
You will need to find out the specific details for the form from your ISP.
If you need help setting up your form after receiving the necessary information from your ISP, contact Softpress Support.
Page view 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 249 250

Comments to this Manuals

No comments