Documentation Index

CPAINT :: Cross-Platform Asynchronous INterface Toolkit

Developer's Guide : Backend

Backend Guide: Pages

integrating CPAINT
implementation differences
generating XML
complex return-data
arbitrary character encodings

It is our recommendation that you write the backend functionality first. You can start to write functions as you normally would - whether that is to perform advanced form validation, database updates or retrievals, or whatever else.

Implementing CPAINT in your functions is basically the same, regardless of how simple or complex your functions are. We will start with a very basic example and show you how to make those functions work with CPAINT.

PHP Example

  function calculate_tax($sales_amount) {
    return($sales_amount * 0.075);

This function simply calculates the sales tax for a given amount at 7.5% and is similar to something you might find in an eCommerce application.