Source for file example.php
Documentation is available at example.php
//you do *not* need the following line!
require_once 'HTML/Select.php';
//key is used as label, value as <option value="">.
$years = range(2000 , 2010 );
//load array with values only
$yearsel->loadValueArray ($years, 2004 );
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>HTML_Select demo</title>
<form method="get" action="#">
<label for="color">Select a color:</label>
<label for="year">Select a year:</label>
Documentation generated on Mon, 11 Mar 2019 15:47:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|