Create and Validate PHP Forms in Seconds.
mcrypt
functions, and replaced them with modern PHP 8 functions.@tailwindcss/forms
plugin in your tailwind.config.js
file for the wrapper to work properly.lib/wrappers/tailwind.php
.I did not add return types or type hints because the code was written under PHP 5, so adding them would basically kill your app because I did a lousy job of creating the methods and properties back in the day.
The Bootstrap 3 and 4 wrappers have not been updated as they are obsolete.
$_SESSION
and checkbox/dropdown arraysselect_multiple()
item being selected when empty$_SESSION
$form->send_email()
$form->info()
value
attribute to the honeypot method.Added an error()
function to print out inline error messages
$form->text('first_name', 'First name');
$form->error('first_name');
Fixed an issue where hidden elements would not have an ID.
Fixed an issue where changing the name of uploaded files would truncate the filename.
You can now add custom headers to your HTML emails when using send_email()
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "From: " . $from . "\r\n";
$form->send_email($to, $subject, $message, $from, 'HTML', $headers);
You can now set a timeout duration for CSRF in FastForm.
// Set the CSRF timeout to 1800 seconds
$form->fastform($data, 1800);
SESSION
expired.Bug fixes