
Miva Script Tags
1. Structure of a Miva Script Program
- Introduction
- Creating URLs for Miva Script Programs
- Miva Merchant Empresa
- Miva Merchant Mia
- Writing a Miva Script Program
- A Simple Miva Script Program
- About Tags
- About Attributes
- Using Tags Inside Tags
- Using JavaScript with Miva Script
- Putting Comments in Your Program
- <MvCOMMENT>
- Exiting from a Program
- <MvEXIT>
2. Variables
- Introduction
- Variable Naming Conventions
- Additional Naming Considerations:
- Valid Naming Conventions:
- InValid Naming Conventions
- Assigning Values
- <MvASSIGN>
- Assigning Variables in HTML Forms
- Variable Scope
- Prefixes and Scope
- Passing Variables
- <MvHIDE>
- Site Variables
3. Expressions and Literals
- Introduction
- Expression
- Literal
- Examples
- Quotes and Other Special Characters in Expressions
- Other Special Characters
- Displaying the Result of an Expression
- <MvEVAL>
4. Miva Script Operators
- Introduction
- Arithmetical Operators
- Comparison Operators
- Logical Operators
- Text String Operators
- Bitwise Operators
- Order of Precedence for Operators
5. Arrays and Structures
- Introduction
- Arrays
- Evaluation
- Assignment
- Array Index
- Multiple Dimension Arrays
- Error Conditions
- Structures
- Using Arrays and Structures Together
- Multiple Form Variables with the Same Name
6. Functions
- Introduction
- Parameters
- Passing Variables by Reference
- Function Definition
- Local Variables and Parameters
- Calling Functions
- Calling Functions from a Form
- More on Functions
- Built-in Functions
- Time Functions
- Text String Functions
- Boolean-valued String Functions
- Other String Functions
- Numerical Functions
- File System Functions
- Built-in System Functions
- Language Identifiers
- Sources of Additional Information
7. Macros
- Converting Macros to Miva Script Code
- Miva Expression as Value of HTML Tag
- miva_variable_value Function
8. Configuring Miva Processor
- Introduction
- <MIVA> Tag
- Configuring Miva Script Code Interpretation
- Configuring the Miva Script Output
- STANDARDOUTPUTLEVEL Values
- Default Macro Encoding
- Configuring Error Reporting
- Syntax Errors
- Expression Errors
- Runtime Errors
- ERROROUTPUTLEVEL
- Configuring Runtime Error Handling
9. Flow Control
- Introduction
- Decision-making
- <MvIF>
- Attribute
- Nesting
- Either Or Decisions
- <MvELSE>
- Multiple Decisions
- Repetition
- <MvWHILE>
- Repeating a Fixed Number of Times, <MvWHILE>
- Repeating a Non-fixed Number of Times
- Terminating a Loop
10. Passing Data to a Program
- Introduction
- Name/Value Pairs
- Value List
- Passing Variables
- Passing Multiple Form Variables of Same Name
11. Using Cookies
12. External Files
- Introduction
- <MvDO>
- Multiple Passes Through a Program
- Using External Data Files
- Reading from External Files
- <MvIMPORT>
- Filtering the Input
- Terminating the Import
- Using the Record Number (recno)
- Nested Imports
- Writing to External Files
- <MvEXPORT>
- File Locking
- <MvLOCKFILE>
- Nesting <MvLOCKFILE>
- Database Locking
13. Communicating with an HTTP Server
- Introduction
- <MvCALL>
- Requesting a Document
- Tags
- Text
- Headers
- MvCALL Examples
- Limitations
- Submitting Data with <MvCALL>
- Using GET
- Using POST
- Processing the Response
- Calling Miva Script (and other) Programs
- Running System Commands
- File Uploading
- Authenticating the Upload
- Processing the Upload
- Sending Files
- Receiving Files from End-users
14. Sending and Receiving Email
- Introduction
- Sending Mail
- <MvSMTP>
- Address Formats
- Mail Headers
- Reading Mail
- <MvPOP>
- Deleting an Email Message
15. Using Databases
- Introduction
- Using Xbase3 Databases
- Introduction to Databases
- Summary of Database Operations
- Creating the Database
- Database aliases
- Opening the Database, <MvOPEN>
- The Primary Database, <MvPRIMARY>
- Adding and Updating Records
- Indexing the Database
- Database Navigation
- Filtering the Database
- Reading and displaying Database Records
- Deleting Records, <MvDELETE>
- Obtaining the Database Structure, <MvREVEALSTRUCTURE>
- Creating a Database
- <MvCREATE>
- Example Database
- Identifying the Database
- Defining Database Fields
- Specifying the Primary Database Alias
- <MvPRIMARY>
- Accessing Fields in a Record
- Opening and Closing Databases
- <MvOPEN>
- Closing a Database Alias
- <MvCLOSE>
- Adding, Updating, and Deleting Records
- Adding a Record to a Database
- <MvADD>
- Date Fields
- Updating Records
- <MvUPDATE>
- Deleting a Record
- <MvDELETE>, <MvUNDELETE> and <MvPACK>
- Using Database Indexes
- Creating a Database Index
- <MvMAKEINDEX>
- <MvMAKEINDEX = "db_alias" INDEXFILE = "filename.mvx" EXPR_TYPE ="variable" EXPR = "variablename"
- Flags
- Setting a New Main Index
- <MvSETINDEX>
- Recreating Index Files
- <MvREINDEX>
- Moving Around in a Database
- Finding Records
- <MvFIND>
- Interaction Between Indexing and Navigation
- Filtering Records
- <MvFILTER>
- Moving to a Specific Record Number
- <MvGO>
- Skipping to a Record
- <MvSKIP>
- Obtaining a Database's Structure
- <MvREVEALSTRUCTURE>
- Accessing ODBC Data sources
- Connecting to an ODBC Data source
- Running SQL Queries
- <MvQUERY>
- <MvOPENVIEW>
16. Formatting Strings: FMT Operator
- Introduction
- FMT Patterns and Modifiers
- Formatting U.S./English Canadian Monetary Values
17. Internet Commerce
- <MvCOMMERCE> Tag
- Commerce Library Exported Functions
- miva_commerce_init
- Syntax:
- Parameters
- Return Value
- miva_commerce_loop
- Syntax:
- Parameters
- Return Value
- miva_commerce_cleanup
- Syntax:
- Parameters
- Return Value
- miva_commerce_error
- Syntax
- Parameters
- Return Value
- Using UPS Quick Cost
- UPS Input Variables
- Return Fields
- Returned Fields
- Example
18. System Variables
- Time Variables
- CGI, HTTP, and Other Variables
19. Localization
- Language Identifiers
- Retrieve Settings:
- Localization Block
- Localized Text
- Localized Token
- Localization Sample
|
Quadralay Corporation http://www.webworks.com Voice: (512) 719-3399 Fax: (512) 719-3606 sales@webworks.com |