ValidForm Builder

Easy and safe XHTML 1.0 strict forms with validation!

Contents

The VF_Select class

Introduction

This class creates a (dropdown) select list. (Field type: VF_SELECT_LIST)

Class synopsis

VF_Select {
	object addField(string $value, string $label[, bool $selected])
	object addGroup(string $label)
	string toHtml([bool $isSubmitted[, bool $simpleLayout]])
	string toJS(void)
}

Table of Contents

VF_Select→addField — Adds a new <option> field to the select list
VF_Select→addGroup — Generates the HTML code for this element
VF_Select→toHtml — Generates the HTML code for this element
VF_Select→toJS — Generates the Javascript code for this element