久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <small id='hytqt'></small><noframes id='hytqt'>

        <bdo id='hytqt'></bdo><ul id='hytqt'></ul>

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

        <選擇>下拉默認值

        lt;selectgt; dropdown default value(選擇下拉默認值)

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

              <tfoot id='Qnfnn'></tfoot>
                <tbody id='Qnfnn'></tbody>
              • <bdo id='Qnfnn'></bdo><ul id='Qnfnn'></ul>
              • <legend id='Qnfnn'><style id='Qnfnn'><dir id='Qnfnn'><q id='Qnfnn'></q></dir></style></legend>
                  <i id='Qnfnn'><tr id='Qnfnn'><dt id='Qnfnn'><q id='Qnfnn'><span id='Qnfnn'><b id='Qnfnn'><form id='Qnfnn'><ins id='Qnfnn'></ins><ul id='Qnfnn'></ul><sub id='Qnfnn'></sub></form><legend id='Qnfnn'></legend><bdo id='Qnfnn'><pre id='Qnfnn'><center id='Qnfnn'></center></pre></bdo></b><th id='Qnfnn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Qnfnn'><tfoot id='Qnfnn'></tfoot><dl id='Qnfnn'><fieldset id='Qnfnn'></fieldset></dl></div>
                  本文介紹了<選擇>下拉默認值的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有這個代碼:

                  if(isset($_POST['search']))
                  {
                      $res1=mysql_query("SELECT * FROM aircraft where acode = '$_POST[ac]'") or die(mysql_error());
                      while($row=mysql_fetch_array($res1))
                      {
                          $airc=$row['acode'];
                          $amode=$row['amodel'];
                          $stat=$row['status'];
                          $rem=$row['remarks'];
                  
                      echo "<center><table><form name="frmMain" method="post"> 
                          <tr><td><font face=consolas><b>Aircraft Code:</b></font></td><td><input type=text name=arc value='$airc' readonly=readonly></td></tr>
                          <tr><td><font face=consolas><b>Aircraft Model:*</b></font></td><td><input type=text name=am value='$amode'></td></tr>
                          <tr><td><font face=consolas><b>Status:*</b></font></td><td><input type=text name=st value='$stat'></td></tr>
                          <tr><td><font face=consolas><b>Remarks:*</b></font></td><td><input type=text name=rm value='$rem'></td></tr></table>";
                      }
                  }
                  

                  在提交搜索"按鈕時,此代碼顯示飛機表中的數據.允許用戶使用 (*) 符號更新數據.

                  On submit 'search' button, this code displays the data from aircraft table. The user is allowed to update the data with the (*) sign.

                  由于狀態默認如下(可用,不可用),我改了這個

                  Since the Status are the following by default (Available, Not Available), I changed this

                   <tr><td><font face=consolas><b>Status:*</b></font></td><td><input type=text name=st value='$stat'></td></tr>
                  

                  至此,

                  <tr><td><font face=consolas><b>Status:*</b></font></td><td><select name=st>
                      <option value=Available>Available</option>
                      <option value='Not Available'>Not Available</option>
                  </select></td></tr>
                  

                  但我希望下拉菜單的默認值取決于$stat=$row['status']; 因為這是一個更新表單.

                  But I want the dropdown to have it's default value depending on $stat=$row['status']; since this is an update form.

                  如果正在檢索的數據的狀態為可用",則下拉列表的默認值應為可用".

                  If the data being retrieved has it's status 'Available', then the dropdown should have it's default value as 'Available'.

                  我怎樣才能做到這一點?我試過 <select name=status value='$stat'> 但它不起作用.任何幫助將不勝感激.謝謝!

                  How can I achieve that? I tried <select name=status value='$stat'> but it doesn't work. Any help will be appreciated. Thanks!

                  推薦答案

                  只需將 selected="selected" 放在選項上,具體取決于您的 $row['status'],

                  Just put selected="selected" on the option depending on your $row['status'],

                  <option selected="selected" value="available">Available</option>
                  

                  這篇關于<選擇>下拉默認值的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                      <tfoot id='tPSGo'></tfoot>
                        <bdo id='tPSGo'></bdo><ul id='tPSGo'></ul>

                            <tbody id='tPSGo'></tbody>
                          <legend id='tPSGo'><style id='tPSGo'><dir id='tPSGo'><q id='tPSGo'></q></dir></style></legend>
                          • <small id='tPSGo'></small><noframes id='tPSGo'>

                          • <i id='tPSGo'><tr id='tPSGo'><dt id='tPSGo'><q id='tPSGo'><span id='tPSGo'><b id='tPSGo'><form id='tPSGo'><ins id='tPSGo'></ins><ul id='tPSGo'></ul><sub id='tPSGo'></sub></form><legend id='tPSGo'></legend><bdo id='tPSGo'><pre id='tPSGo'><center id='tPSGo'></center></pre></bdo></b><th id='tPSGo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tPSGo'><tfoot id='tPSGo'></tfoot><dl id='tPSGo'><fieldset id='tPSGo'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 国产在线播放一区二区三区 | 不卡欧美| 二区三区av| 久久国产精品视频 | 午夜影院网站 | 久久久久成人精品亚洲国产 | 欧美亚洲成人网 | 男女啪啪高潮无遮挡免费动态 | 国产成人免费一区二区60岁 | a级片网站 | www312aⅴ欧美在线看 | 色综合九九 | 午夜视频网| 日本免费一区二区三区 | 日日摸夜夜添夜夜添精品视频 | 成人亚洲| 精品啪啪 | 99久久免费观看 | 国产亚洲一区二区精品 | 精品国产不卡一区二区三区 | 亚洲成人av在线播放 | 欧美性受xxxx白人性爽 | 亚洲人va欧美va人人爽 | 欧美精品在线一区 | 国产精久久久久久久妇剪断 | 欧美男人天堂 | 粉嫩av在线| 欧美亚洲综合久久 | 欧美日韩中文字幕 | 国产精品视频免费观看 | 亚洲国产精品精华素 | 国产精品美女久久久久久久网站 | 欧美亚洲国产一区二区三区 | 久久综合国产精品 | 最新高清无码专区 | 日本亚洲一区 | 亚洲国产精品人人爽夜夜爽 | 欧美大片黄 | av看片网| 国产精品福利视频 | 成人国产精品久久 |