html_option wish

From: Date: Mon, 17 Mar 2003 12:58:13 +0000
Subject: html_option wish
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8686@lists.php.net to get a copy of this message
Hi, I need to define if user select none of the option values <option label="" value="0">""</option> or <option label="None" value="0">"None"</option> I try array_unshift, array_splice, arry_merge but this reindex the array The only way it's $myArray[0] = "" but go to the bottom of popup and need have this at the top. Another way it's to make a php function to do that, but think there a no sens. Please, is it possible have a parameter in html_options to define this case? An example to explain my request: [$blank1stItem=true] http://php.weblogs.com/adodb_manual#getmenu <select name=constructeur_id> <option label="AGUSTA" value="1000060">AGUSTA</option> <option label="APRILIA" value="1000019">APRILIA</option> <option label="BMW" value="1000028">BMW</option> <option label="CAGIVA MOTOR (SUISSE) SA" value="1000011">CAGIVA MOTOR (SUISSE) SA</option> <option label="DUCATI" value="1000004">DUCATI</option> </select> <select name=constructeur_id> <option label="" value="0"></option> <option label="AGUSTA" value="1000060">AGUSTA</option> <option label="APRILIA" value="1000019">APRILIA</option> <option label="BMW" value="1000028">BMW</option> <option label="CAGIVA MOTOR (SUISSE) SA" value="1000011">CAGIVA MOTOR (SUISSE) SA</option> <option label="DUCATI" value="1000004">DUCATI</option> </select> Regards. -- Jean-Michel Juzan jmjuzan@ecreasol.ch Direction Informations & Technologies eCreaSol - NetWork Creative Solutions SARL - http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net

Attachment: [application/pgp-signature] signature.asc
« previous php.smarty.general (#8686) next »