PHP code example of teknicode / bootstrap-forms
1. Go to this page and download the library: Download teknicode/bootstrap-forms library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
teknicode / bootstrap-forms example snippets
$send = $process->catch();
if( $send['status']=="failed" ){
//do something with the error message
echo $send['error'];
//in the event of an error the post values are passed back //to repopulate the form
$send['data'] contains $_POST
}
$process->set("recipient","+4407123456789");
$process->set("aws", [
"aws_access_key_id" => "",
"aws_secret_access_key" => "",
"default_region" => "eu-west-1",
"sms_sender_id" => ""
]);