Using Forms
Only if the Action attribute starts with http
or mailto and if the Method attribute is POST,
the form will be submitted.
If the user's computer is not online, Ebooks will open the connection dialog. If the computer is protected by a firewall, the user may need to approve the communication because it is allowed to proceed.
Some hidden INPUT elements can be used to configure
the submission process (when action is http):
| Input name | Value |
|---|---|
SUCCESS_MESSAGE |
This message will be shown after a successful submission (the default is Done). |
FAILURE_MESSAGE |
This message will be shown after an unsuccessful submission (the default is Host not found). |
TIMEOUT_SUBMISSION |
The time is kept in seconds (without fractions) after which an error message will appear if the submission was not successful (the default is 40). |
USE_BROWSER |
This does not have a value. It is used to do the submission through a user's Browser instead of handling it with the Ebook. |
FRAME_TARGET |
To load the page generated by the script in a frame instead loading it in the top frame). Example: FRAME_TARGET=main |
If mailto is specified, the default email program will
be opened.
The subject line can be specified by using the following syntax:
ACTION="mailto:info@bersoft.com?Subject=Asking
for an Ebook &cc=AddressToCC.com&bcc=BlindCC.com"ACTION="mailto:info@bersoft.com?Subject=Asking
for an Ebook "ACTION="mailto:info@bersoft.com"This function works properly with Microsoft Outlook and Netscape E-mail, and it may work with most email programs. If a system has not had a default e-mail program defined these codes will not work. In short, be sure to make e-mail addresses visible, incase the computer being used has no default e-mail program. Mailto only may submit a very limited amount of data, if it is not enough you should use some kind of CGI call, instead mailto.
Example:
If the Action attribute points to a file existing inside the ebook, it will be opened.
If the Action attribute does not start with "http"
nor is it pointing to an executable program - or if the Method
is not POST, the print dialog box will open allowing the form
to be printed.
Examples:
<form Action="" Method=""> |
will print the page |
<form Action="http:/..." Method="POST"> |
will do a online submission (please see above) |
<form Action="notepad.exe"
Method="output.htm"> |
will do a Local CGI Call (for more information, click on the link below) |
See also:
Registering HyperMaker Ebooks online.