select values into two dropdown box and retrive corresponding table values shows in t

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • infoitmanoj
    New Member
    • Sep 2014
    • 2

    select values into two dropdown box and retrive corresponding table values shows in t

    Code:
    <input type="hidden" name="BKIRIM" id="txt" value=""/>
    <input type="text" name="BKIRIM1" id="txt2" value=""/>
    <input type="hidden" name="distance" id="distance" value=""/>
    <input type="hidden" name="distance1" id="txt1" value=""/>
    <input type="hidden" name="distance2" id="txt1" value=""/>
    <td><span class="man"></span>From:</td>
    <td>
     <?php   
          $query = "SELECT * from sfc";   
          $res = @mysql_query($query);   
          echo'<select name="from1" id="from1" onChange="Expedisi(this);">';   
          while($row = mysql_fetch_array($res))    {
              echo'<option value=""></option>';
              printf("<strong><option value=\"$row[FROM]\">$row[FROM]</option></strong>\n");   
          }
          echo "</select>"; ?> 
    </td>
    <td><span class="man"></span>To:</td>
    
    <?php
      echo '<td>';   
      $query = "SELECT * from sfc";   
      $res = @mysql_query($query);   
      echo'<select name="to1" id="to1" onChange="Expedisi1(this);">';   
      while($row = mysql_fetch_array($res))    {
        echo'<option value=""></option>';
        printf("<strong><option value=\"$row[TO]\">$row[TO]</option></strong>\n");   
      }
      echo "</select>"; 
     ?>   
    <td>  
    <td>
    Last edited by Rabbit; Sep 16 '14, 03:25 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    is there also a question?

    Comment

    Working...