Jump to content

auFormFile: Difference between revisions

From auWiki
New page: {{RightTOC}} FormFile Category:Class Category:PHP The auFormFile class is part of the auLib package. It is defined in the auForm.php file. ;Hierarchy * [[au...
 
No edit summary
 
Line 14: Line 14:
==Public Functions==
==Public Functions==
===new auFormFile===
===new auFormFile===
<code>new auFormFile($name, ''$label'', ''$tooltip'', ''$required'', ''$default'', ''$width'', ''$maxlength'')</code>
<code>new auFormFile($name, ''$label'', ''$tooltip'', ''$required'', ''$width'')</code>


Creates a new file input form field.
Creates a new file input form field.
Line 21: Line 21:
* ''$tooltip'' = Tooltip text to display when the mouse is over the label.  Default is none.
* ''$tooltip'' = Tooltip text to display when the mouse is over the label.  Default is none.
* ''$required'' = Whether a value is required in this field.  Default is not required.
* ''$required'' = Whether a value is required in this field.  Default is not required.
* ''$default'' = Default value for this field.  Default is blank / unchecked.
* ''$width'' = Width of the field in characters.  Default is browser default.
* ''$width'' = Width of the field in characters.  Default is browser default.
* ''$maxlength'' = The maximum number of characters the field can accept.  Default is unlimited.

Latest revision as of 12:20, 1 May 2008

The auFormFile class is part of the auLib package. It is defined in the auForm.php file.

Hierarchy

Usage

This class is used to add a file input field to a form. Create an object from this class and add it to an auFormContainer object.

Public Functions

new auFormFile

new auFormFile($name, $label, $tooltip, $required, $width)

Creates a new file input form field.

  • $name = Name to submit the field as.
  • $label = Label to display with the field. Default is blank.
  • $tooltip = Tooltip text to display when the mouse is over the label. Default is none.
  • $required = Whether a value is required in this field. Default is not required.
  • $width = Width of the field in characters. Default is browser default.