Re: in_array()

From: Date: Sun, 24 Jun 2001 18:04:43 +0000
Subject: Re: in_array()
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-970@lists.php.net to get a copy of this message
On Sun, Jun 24, 2001 at 07:24:46PM +0200, hans@linux.gelrevision.nl wrote: > I'm building a page that holds several select boxes (two of them can hold > multiple values). When one uses this page to edit things it should display it's > original values (retreived from a db). As far as I know I could solve this by > passing the original <option value="integer">\n (with a selected in it if > it's > needed) to a string. Since I don't like to store pure html within my php I > would like to know if there is any in_array() function within smarty that I > didn't discover. Use html_options. It can handle multiple selections by passing an array into 'selected'. cheers, roel -- C isn't that hard: void (*(*f[])())() defines f as an array of· unspecified size, of pointers to functions that return pointers to· functions that return void.

« previous php.smarty.general (#970) next »