Reference Guide

Adobe Acrobat PDF Lampshade 1.2 Reference (PDF)

form.inc.php - Form Functions

uploadBox

Required Parameters: string $field
Optional Parameters: string $label, bool $uploadButton, bool $newLine, int $width, int $height
Returns: None
Description: This function generates a HTML form input of type "file." The web browser renders a "Browse..." button next to the right of the box, which is itself not sizeable. The box can store the local path of a single file to be uploaded. Its name is given by the $field variable. If $label is not null, the labelCell() function will automatically generate a two-column table row around the input. If $uploadButton is TRUE, a standard Think button, with dimensions $width x $height, will be displayed to the side of or below the box, depending on the value of the $newLine variable. For the HTTP upload to work, the parameter ENCTYPE="multipart/form-data" must be included in the appropriate FORM tag.

function uploadBox($field, $label = '', $uploadButton = TRUE, $newLine = FALSE, $width = 80, $height = 20)

Copyright © 2001-2010 Think Computer Corporation. All Rights Reserved. Patent pending.

Authors of the impossible.™
Think