English 中文(简体)
zen,如何用数字和文字添加多用途?
原标题:zend, how to add multiOption with numbers and text?

i) 降级法:

$this->addElement( select ,  waistmin , array(
             label  =>  Pants: ,
             multiOptions  => array_combine(range(21, 48), range(21, 48)),
             value  => 21
    ));

this will do :

<select id="waistmin" name="waistmin">
<option selected="selected" label="21" value="21">21</option>
<option label="22" value="22">22</option>
.......
<option label="47" value="47">47</option>
<option label="48" value="48">48</option>
</select>

想做的是增加<条码>(......,任何......)选择,以便该代码有<条码>。 任何选择,作为第一个选择,按违约选择。

并且无法确定如何在<条码>内添加这一选择。

any ideas? thanks

最佳回答
 multiOptions  => array_merge(array(  =>  ,  Any => Any ), 
                              array_combine(range(21, 48), range(21, 48))
                             )
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签