API
API
About the API
The goal of the API is to provide communication between Form Tools and the outside world. It contains functionality for tasks such as submitting form submissions via PHP code rather than POSTing in the information to process.php, accessing and display Form Tools data in your own webpages, managing client accounts via code rather than the Form Tools interface and other such helpful functionality.
The Form Tools API is found in your [form tools root]/global/api/ folder.
Depending on the needs and requests of users, additional functions are likely to be added to this file.
Requirements
- Form Tools must be installed on your server
- It can only be called within a PHP page on the same server as your Form Tools installation
- It requires the /global/api/api.php file to have been included in your page
How to use it
In order to use the API functions you must include the api.php file in your web page BEFORE the function call. You only need to include this line once. The path must be edited for the location of your api.php file on your server. It can be a relative or absolute link.
<?php
require_once("/path/to/[form tools folder]/global/api/api.php");
?>