getHTML()
clonefish->getHTML() - returns the entire (X)HTML and JavaScript code of the form in a string.
Description
class clonefish { string getHTML( void ) }
Returns the entire (X)HTML and JavaScript code of the form in a string. The $clonefish->jspath
attribute is required to use the clientside JavaScript validation. The HTML code is generated from the HTML snippets defined in the $clonefish->layouts
attribute, and also affected by these clonefish attributes:
- layout
- layouts
- js
- jspath
- jsalert, jsalertmessagecontainerlayout, jsalertmessagelayout
- jshtml, jshtmlmessagecontainerlayout, jshtmlmessagelayout
- outputmessages
- showerroricon
- erroricon
- errorstyle
- prefix
- postfix
- messageprefix
- messagecontainerlayout, messagelayout
- messagepostfix
- formopenlayout
- formcloselayout
- layoutcleanup
Learn more about these attributes!
Return values
The entire (X)HTML and JS code on success. If an error occurs, clonefish will die with an error message.
form validation for developers!
clonefish is a proven, mature form generator class that helps PHP developers to create, validate and process secure, flexible and easy-to-maintain formslearn more