-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
OneBadNinja edited this page Nov 25, 2017
·
1 revision
To import the handymail library, you must include the handymail.init.php file within your page:
require_once("handymail.init.php");
HandyMail utilizes AJAX technology for validating forms, and hence requires the jQuery library to function. If you don't already use jQuery, include the following CDN within the section of your form page:
<head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
</head>
You can now instantiate the handymail object and proceed with generating your form. When first creating the HandyMail object, several arguments may be supplied:
- string $name: set the form name.
- string $action: relative or absolute URL for the form's action attribute.
- string $submit (optional): The text to display for the submit button. Defaults to "Submit" if ignored.