Reporting language

For pages that are generated by one of the server scripts (such as multi-page forms, save-and-resume forms, or single-page forms that are started through the CGI program) you can include a few special commands.

Examples are:

<?ezs SOURCE filename.html ?> includes the file "filename.html". This could be useful for including a menu, banner, etc...

<?ezs INCLUDE filename.html ?> includes the file "filename.html" AND fills in any form fields. This is probably just going to confuse people, but it might be useful.

Or, try this:

<?ezs REPORT database.asc QUERY ?>

Field 1: {field_1} Field 2: {field_2}
{/report}

This is actually rather sophisticated. It prints a formatted report from an ASCII file ("database.asc") on the server. See below for tricks you can do with the stuff inside the braces. QUERY is something of the form

"field_1=value&field_2=val*"

You can use the ? and * characters as wildcards the same way you do in DOS file names.

Note that there needs to be a space between the last parameter and the ?> in this report language.

You can also include the answer to a previous question as part of the HTML to be printed with this syntax:

<$field_name>

You could also print the environment variables

<$$REMOTE_ADDR>

This variable inclusion can be rather complicated You can use comparisons and field values. The syntax here is borrowed from Perl and C.

field_name: just prints the field value

$env_var: prints an environment variable

field=value?text to print if the comparison is true:text for false!text if the field is not found

field=$field?$field:$field

The characters ? : ! are used as delimiters here. There should be no spaces.

Note that you can use the $ to print a field value instead of a fixed value.

Comparisons may be:



Raosoft, Inc.
Raosoft EZReport, EZSurvey, InterForm, RapidReport, Raosoft, and SurveyWin are registered trademarks of Raosoft, Inc. Page contents © 1996-2007 by Raosoft, Inc. You may use and modify this file for your own use, but may not distribute it or derivative works without the prior written consent of Raosoft, Inc. This software is provided "as is," and Raosoft makes no warranty, express or implied, of fitness for a particular application. Every measure has been taken to anticipate risks inherent to computer networks, but we cannot guarantee safety or reliability of this program in every situation.
Tel: 206-525-4025 (US) Email: raosoft@raosoft.com
http://www.raosoft.com/