Setting the default value for a dynamic selection menu

Hi I have a php with 2 forms to this topic page, you feed on the other to achieve a lock down (manufacturer > model). The menu then select I have a static default value 'Select a model aircraft', I want to set a value for the first menu select dynamic to read "select the manufacturer. When I add a static value to my list, it tells me I alreay have a dynamic behavior on this menu and choose another. I've included the code for two menus. Thank you in advance, I know it must be a stupid question, but it has left me speechless.

Tom

This is the menu that I want to add static value defaults to.

< td width = "667" > < select name = "airMake" style = "" width: 200px; "" OnChange = "This.Form.Submit (); "id ="airMake">

<? PHP

{}

? >

< option value = "<?" PHP echo $row_rsAirManufacturer ['aircraft_manufacturer']? > "<?" PHP if (!) strcmp () ($row_rsAirManufacturer ['aircraft_manufacturer'], ((isset($_POST["airMake"]))? $_POST ['airMake'] :""))) {echo "selected =-'selected\'" ;}?})) > > <? PHP echo $row_rsAirManufacturer ['aircraft_manufacturer']? > < / option >

<? PHP

} While ($row_rsAirManufacturer = mysql_fetch_assoc ($rsAirManufacturer));

$rows = mysql_num_rows ($rsAirManufacturer);

If ($rows > 0) {}

mysql_data_seek ($rsAirManufacturer, 0);

$row_rsAirManufacturer = mysql_fetch_assoc ($rsAirManufacturer);

}

? >

< / select >

< table >

< /tr >

< / table > < / make >

< do action = "quoteResult.php" method = "post" name = "quoteForm" > "

< table width = "100%" border = "0" cellpadding = "5px" >

< b >

< td width = "260" style = "color: #000;" text-align: right; "> aircraft model: < table >

< td colspan = "2" > < span id = "spryselect2" >

This is the menu that works properly.

< select name = "airModel" style = "" width: 200px; "id ="airModel">"

< option value = "" <? " PHP if (!) () strcmp ("", ((isset($_POST["airMakeField"]))? ") $_POST ['airMakeField'] :""))) {echo "selected =-'selected\'" ;}?} > > < / option >

<? PHP

{}

? >

< option value = "<?" PHP echo $row_rsAirModel ['aircraft_model']? > "<?" PHP if (!) strcmp () ($row_rsAirModel ['aircraft_model'], ((isset($_POST["airMakeField"]))? $_POST ['airMakeField'] :""))) {echo "selected =-'selected\'" ;}?})) > > <? PHP echo $row_rsAirModel ['aircraft_model']? > select a model airplane < / option >

<? PHP

} While ($row_rsAirModel = mysql_fetch_assoc ($rsAirModel));

$rows = mysql_num_rows ($rsAirModel);

If ($rows > 0) {}

mysql_data_seek ($rsAirModel, 0);

$row_rsAirModel = mysql_fetch_assoc ($rsAirModel);

}

? >

< / select >

-Change

So if the value of "airMake" is - 1, you know that no choice has been made.

Tags: Dreamweaver

Similar Questions

  • When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    Hi kevin7frg,

    You can go to "file > create > scanner > configure presets PDF»

    The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.

    Hope that helps.

    Kind regards

    Ana Maria

  • How to set the default value for the digital control on front panel?

    How to set a default value for a numeric control of LabVIEW 2009 Front Panel? I have several input values that are actually configuration settings I want to settle with the default values of zero. I want them to be the values displayed when the façade first appears until the code is executed.

    I really want to use the Minimum and Maximum limits by default for this because I still want to be able to define acceptable limits for values.

    I would not be able to specify a default value of zero for these entries?

    Enter the desired value, then "right click...... of default data of value to operations. Save the VI.

  • Best way to set the default values for the form elements

    Hello

    I have a form with a lot of defaults that is mentioned below...
      Field                      value  
      created by             :APPL_USER
      creation_date         SYSDATE
      last_updated_by     :APPL_USER
      last_update_date    SYSDATE
      item1                     value1
      item2                     value2
    I am currently using calculation-> after presents... then when we create/update a record... these computaion takes place and the default value for the inserted values get... THIS WORKS PERFECTLY WELL.

    I want to know... If this approach is fine OR we can have a better approach to achieve...?

    Thank you
    Deepak

    Hello

    I think it's good if it fits your need.

    But why you have these fields in the form?
    created by: APPL_USER
    CREATION_DATE SYSDATE
    last_updated_by: APPL_USER
    last_update_date SYSDATE

    The user can enter the ones?
    I thought that those who are to audit and I would fill those drop with trigger in the database.
    So that you get the same "correct" values if you need to manipulate the data with example of sql client

    BR, Jari

  • Cannot set the default value for the selection list

    I created a list of selection, the 'value list', and it's like this:
    STATIC:Morning;M,Noon;N,Evening;E
    I want that he selects 'Morning' by default. But when the page is displayed, it sorts actually three items in alphabetical order, so "night" is still the default.

    Someone knows how to change that? Thank you!

    Specify am ' in the default value of the edit page of the item field.

    CITY

  • How to set the default value for the Group of radio buttons

    Hello
    Here's my situation.
    I have a form of HTML text. In the form, I have an element called "* drinks * ' and its options in the radio button group or coffee, tea. Now, I want to put a default value("NA") to the radio of drinks group. Is it feasible. If so, how. Advice would be useful. Thank you

    Hello!

    You can also set a default value in the radio unit of page article under the default setings. Here, you must put the result value (if you have static: Café;) One, the; B, NA; C you write C if you want NA default choice) of your radio.

    concerning

  • How to set the default value for a selector to display based on another analysis

    Hello

    I have a requirement where I have to choose a different opinion to an analysis based on the data from the analysis. More specifically, I have a bar graph that must adapt to the view that is appropriate for the data that the user seeks to (according to the instructions of the dashboard).  A few times, the user can focus on two weeks of data and it's OK to see 14 bars in the bar chart (one for each day), but when the user is looking at a value a year of data, the data should be grouped by month.   I've seen for each that look good and the view selector works.  My problem is that I need reviews to be selected without the user to search through the view selector drop-down.  I also have the logical case (in a separate analysis of the same dashboard) who says what the best view of the user.

    How can I programmatically change what view of the picker view is presented to the user?

    Justin W. Steigerwalt

    ADT Security

    (404) 759-1971

    [email protected]

    My solution for this is to count the number of "," in the prompt value.

    The calls to set a variable of presentation and I just have to count the number of commas in the value of the variable of presentation. When you select several entries of the presentation variable is a simple comma-separated list.

    How to count commas? The shortest path was provided by Christian Berg (I was doing it less "optimally"): length - LENGTH (REPLACE (string, ',' ")) + 1

    If your guest set a presentation named "pv_week" the formula variable is: LENGTH('@{pv_week}{-}') - LENGTH (REPLACE (' @{pv_week} {{}}', ',' ")) + 1

    Then just use it in the CASE WHEN (attention to the always return the same type of data, so if the granularity of weeks and months is VARCHAR, the granularity of the day must be also a VARCHAR and not a DATE, you must CAST to avoid problems).

  • How can I set the default value for an input text element?

    Hello

    I have a page where I ask the user to fill out entry texts.
    The input text have links for some parameters of an exported method of the AM via the DataControl.
    Once the user fills the text of entry, he can click a button that executes the method associated with AOS.
    It's ok.

    Now, I want to set default values appropriate (taken from a java method) for some texts of entry on the initial page rendering, for they are virgins.
    How can I do this?
                                <af:inputText value="#{bindings.parameter.inputValue}" label="Method Parameter"
                                              required="#{bindings.parameter.hints.mandatory}"
                                              columns="#{bindings.parameter.hints.displayWidth}"
                                              maximumLength="#{bindings.parameter.hints.precision}"
                                              shortDesc="#{bindings.parameter.hints.tooltip}" id="it15">
                                    <f:validator binding="#{bindings.parameter.validator}"/>
                                </af:inputText>
    
      <executables>
        <variableIterator id="variables">
          <variable Type="java.lang.String" Name="parameter" IsQueriable="false"/>
        </variableIterator>
      </executables>
    
    
  • MASTER DETAIL - SET THE DEFAULT VALUES FOR ELEMENTS

    I have a page master detail where, on the master, I do things like update the fields entered_by and entered_date
    by applying functions to define item-level details and the read-only setting.

    On the portion of the page detail, I would do the same thing, but I don't see the point of page details - only master items.
    The portion of details is for comments so I wish I had the commenter_name and commenter_date the value of the values
    When I hit the Add button line on the portion of details.

    Where are the elements of detail?

    I use APEX 3.2

    Thank you

    Steve

    Hello

    When you use the master detail form, APEX build "Detail part" in the report. So if you edit the page, you won't see actual items for 'Party detail'

    If you want to set default values or want to format these items, you may need to perform like this

    1 > edit 'report' of the "retail portion.
    2 > click on attributes report
    3 > click on the column, you want to set default values
    4 > now here, in accordance with article 'Tabular form Element' you can do this by setting appropriate in 'default' type fields and "default".

    It may be useful

    See you soon
    Hari

  • How can I fix my Windows 7 file association problem and set the default values for the correct file?

    Files do not open the appropriate program

    The simplest is to restore your system settings for a time before the invalid associations have been set.

    1 type the word restore in your Start menu, then choose restore system files and settings...
    2 - Click Next, choose a date before the problem happens again, and then click Next
    3. about 2 minutes later, you're all set.
  • How to set the default value for the search results per page?

    RH8 RoboHelp HTML. TOC published is published with a search option and search results per page default is 10. Where can I reset it to something like 20 or 30 (the table of contents has a lot of room so that a large number of returns).

    Look at the whform.js file in the folder of release of Webhelp for var gnMaxRslt = 10; and change the number here.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Syntax to set a default value for the metadata of Web site field

    In my profile, I have a rule where I did the infoOnly metadata xWebSites field and define a default value like this:

    < $dprDefaultValue = # active.xWebSites$ >

    Y at - it something I am doing wrong? Incorrect syntax?

    Thank you!!

    I found this in the documentation of the Site Studio:

    "To identify the ID of an article or a website, open the page to check content on the content server and click Browse next to the"Section of the Web Site." In the window choose the Web Site Section, select your Web site and notice the ID in brackets next to each section (Figure). »

    Can I set the default value for the ID?

  • Set a default value for SQL based LOV

    Hello

    Is there a way to set the default value in a LOV. Like let him say the LOV gets of the separate to_Char(date_field,'YYYY') in a table. I want the last year is the default value. Currently, since I was the null option also, when the page loads, the lov is always null. I need to change it manually.

    Thank you
    Sun

    You can easily set the default values for the dynamic element

    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB28287

    for example, select the default type in the body of the PL/SQL function and enter the following code

    declare
    v_return date;
    begin
    select max(date_field) into v_return from your_table;
     return to_Char(v_return,'YYYY');
    exception when others then
    return null;
    end;
    
  • ODI 11 g | How to set the default value in the Interface mapping?

    Hello
    I m interpreting data OID of Oracle DB load target FOR Hyperion Essbase.
    Its my requirement to set the default value for any size target source system it becomes same record for a specific column.
    I thought that it would be fixed in the Interface, but I was not able to do.

    Example:
    Target Essbae Dimension
    Size of account must have the value "FixAccount".
    Dimension of the year must have the value "FY13.
    Dimension of the view must have the value "ActiveView.

    looking for your

    Concerning
    Sher

    Yes

  • How to set the default value of a column from the value of the 2 columns given

    Is it possible to set the default value for a column A, as the concatenated values of columns B and C of the create table statement itself without using the trigger.

    for example, in a line, if column B is 'James' and column C is "smith" then the column has must be "james Smith".
    in another line if column B is 'Bob' and column C is "Taylor" then column should be "Bob Taylor"

    Thank you
    YG

    Yes, it is possible. But what is your version of the database? Try to use "virtual column. Search for a virtual column in the following link.
    http://www.Oracle.com/technology/pub/articles/Oracle-database-11g-top-features/11g-schemamanagement.html
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_7002.htm

Maybe you are looking for