global $email_address, $mail_subject;
        $mail_body = "Firstname: " . $_POST['ct_firstname'] . "\n";
        $mail_body .= "Lastname: " . $_POST['ct_lastname'] . "\n";
        $mail_body .= "Email: " . $_POST['ct_email'] . "\n";
        $mail_body .= "Phone: " . $_POST['ct_phone'] . "\n";
        $mail_body .= "Reason: " . $_POST['ct_reason'] . "\n";
        $mail_body .= "Message: " . $_POST['ct_message'] . "\n";
        mail($email_address, $mail_subject, $mail_body);
        $msg = '<div class="errMsg" style="text-align:center;width:' . $obj->getOption('form_width') . '">Form has been sent!</div><br>';
    }
    public static function rendering($container, $obj)
    {
        // do something before the html is printed
        $title = '<div style="text-align:center;width:' . $obj->getOption('form_width') . '"><h1>Contact Form</h1></div>';
        $container = $title . $container;
    }
}
$form = new ContactForm();
echo '<!DOCTYPE html><html><head>';
/* (OPTIONAL) INCLUDE JS FOR JQUERY VALIDATOR AND UI STYLES  PLUGINS */
//require_once("ptcforms-ui-plugins.php");
/* MINIMAL CSS FOR THE EXAMPLE */
echo '<style>
		body{font:normal .85em "trebuchet ms",arial,sans-serif;color:#555;}
		input[type=text], select, textarea{width:220px;}
		.errMsg{color:red;}
	</style>';
echo '</head><body>';
/* FINALLY RENDER THE FORM */
$form->render();
echo '</body></html>';