• <bdo id='Hwx6Q'></bdo><ul id='Hwx6Q'></ul>
    1. <tfoot id='Hwx6Q'></tfoot>

      1. <legend id='Hwx6Q'><style id='Hwx6Q'><dir id='Hwx6Q'><q id='Hwx6Q'></q></dir></style></legend>
        <i id='Hwx6Q'><tr id='Hwx6Q'><dt id='Hwx6Q'><q id='Hwx6Q'><span id='Hwx6Q'><b id='Hwx6Q'><form id='Hwx6Q'><ins id='Hwx6Q'></ins><ul id='Hwx6Q'></ul><sub id='Hwx6Q'></sub></form><legend id='Hwx6Q'></legend><bdo id='Hwx6Q'><pre id='Hwx6Q'><center id='Hwx6Q'></center></pre></bdo></b><th id='Hwx6Q'></th></span></q></dt></tr></i><div id='Hwx6Q'><tfoot id='Hwx6Q'></tfoot><dl id='Hwx6Q'><fieldset id='Hwx6Q'></fieldset></dl></div>

        <small id='Hwx6Q'></small><noframes id='Hwx6Q'>

      2. 在 PHP 中禁用添加选项

        时间:2023-10-02
            1. <legend id='sWOTf'><style id='sWOTf'><dir id='sWOTf'><q id='sWOTf'></q></dir></style></legend>
                <bdo id='sWOTf'></bdo><ul id='sWOTf'></ul>
              • <tfoot id='sWOTf'></tfoot>
                <i id='sWOTf'><tr id='sWOTf'><dt id='sWOTf'><q id='sWOTf'><span id='sWOTf'><b id='sWOTf'><form id='sWOTf'><ins id='sWOTf'></ins><ul id='sWOTf'></ul><sub id='sWOTf'></sub></form><legend id='sWOTf'></legend><bdo id='sWOTf'><pre id='sWOTf'><center id='sWOTf'></center></pre></bdo></b><th id='sWOTf'></th></span></q></dt></tr></i><div id='sWOTf'><tfoot id='sWOTf'></tfoot><dl id='sWOTf'><fieldset id='sWOTf'></fieldset></dl></div>

                  <tbody id='sWOTf'></tbody>
                1. <small id='sWOTf'></small><noframes id='sWOTf'>

                  本文介绍了在 PHP 中禁用添加选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我在 PHP 中有一个带有下拉字段的表单,带有这个数组:

                  I have a form with a dropdown field in PHP with this array:

                  $field["options"] = array(
                       array("value" => "Chişinău", "text" => "Chişinău", "depth" => 0),
                       array("value" => "Bălţi", "text" => "Bălţi", "depth" => 0),
                       array("value" => "Comrat", "text" => "Comrat", "depth" => 0),
                       ...
                       array("value" => "Ungheni", "text" => "Ungheni", "depth" => 0)
                  );
                  

                  如何将添加为第一个选项?

                  How to add as a first option the <option selected disabled>Choose one</option>?

                  推荐答案

                  $field["options"] = array(
                      array("value" => " ", "text" => "Choose one", "depth" => 0, "selected" => "selected", "disabled" => "disabled"),
                      //...rest other option code
                  );
                  

                  这篇关于在 PHP 中禁用添加选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何结合zend框架和Codeigniter? 下一篇:如何使用使用 AJAX/PHP 填充的 DropDownList 中选定值

                  相关文章

                  最新文章

                    • <bdo id='3SbsO'></bdo><ul id='3SbsO'></ul>
                    <legend id='3SbsO'><style id='3SbsO'><dir id='3SbsO'><q id='3SbsO'></q></dir></style></legend>
                    <tfoot id='3SbsO'></tfoot>

                    <small id='3SbsO'></small><noframes id='3SbsO'>

                  1. <i id='3SbsO'><tr id='3SbsO'><dt id='3SbsO'><q id='3SbsO'><span id='3SbsO'><b id='3SbsO'><form id='3SbsO'><ins id='3SbsO'></ins><ul id='3SbsO'></ul><sub id='3SbsO'></sub></form><legend id='3SbsO'></legend><bdo id='3SbsO'><pre id='3SbsO'><center id='3SbsO'></center></pre></bdo></b><th id='3SbsO'></th></span></q></dt></tr></i><div id='3SbsO'><tfoot id='3SbsO'></tfoot><dl id='3SbsO'><fieldset id='3SbsO'></fieldset></dl></div>