ValidForm Builder

Easy and safe XHTML 1.0 strict forms with validation!

Contents

The VF_SelectOption class

Introduction

This class creates a option element inside a select list. This class is for internal use only. Use VF_Select→addField to add an option element for the current select list.

Class synopsis

VF_SelectOption {
	void __construct(string $value, string $label[, bool $selected])
	string toHtml([string $value])
}

Table of Contents

VF_SelectOption→construct — Add a new option element to the current select group
VF_SelectOption→toHtml — Generates the HTML code for this option element.