Re: Size of Quickform Select Element Array

From: Date: Wed, 19 Apr 2006 00:41:01 +0000
Subject: Re: Size of Quickform Select Element Array
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23726@lists.php.net to get a copy of this message
On 4/18/06, Robert Gehrig <robert.gehrig@gdbarri.com> wrote: > Hi > > I was wondering what the max size is of the options array in Quickform Select Element is. > > I am doing a search form and I want to use the result of a query to generate the select > element. using the loadQuery function. > > Small numbers of returns from the query (approx 100 or so) seem to work, but one result is an > array of 2100, this fails. > Fails how? My guess is that either PHP runs out of memory or that your browser crashes. > Can someone suggest a better way to look up the items I need to select from to generate the > search. > Use the livesearch element and return a sub-set (first 100) of the elements which changes as the user types in a field. You could also just use a paged display instead of one long list. -- Justin Patrin

« previous php.pear.general (#23726) next »