Input data dari tabel lain

Discussion in 'Desain Web dan Programming' started by oreo, 26 Nov 2007.

Thread Status:
Not open for further replies.
  1. oreo

    oreo New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    mohon solusi input data dari tabel lain, jadi sebelum input data kita bisa display dulu data dari tabel lain tsb kemudian kita select dan input data tersebut...kurang lebih tampilannya seperti di bawah ini......terima kasih.....

    HTML:
    <?php
    include ('koneksi.php');
    if($otok=="cari"){
    header("location:tampil_komp.php");
    }
    ?>
    
    <html>
    <body>
    <H3 align="left">INPUT DATA GURU</H3>
    
     <FORM METHOD=POST ACTION=input_guru.php>
      <table width="79%" border="1">
        <tr> 
          <td width="42%">NIG :</td>
          <td width="58%"><input name="nig" type="text" value=""></td>
        </tr>
        <tr> 
          <td>Nama Guru :</td>
          <td><INPUT TYPE=TEXT NAME="nama_guru"></td>
        </tr>
        <tr> 
          <td>Kompetensi :</td>
          <td><input name="kompetensi" type="text"  value="<?php echo $kd_komp;?>">
            <input name="otok" type="submit" id="otok" value="cari" ></td>
              </tr>
        <tr> 
          <td colspan="2"> <div align="left">
              <input name="SUBMIT" type=SUBMIT value=INPUT>
            </div></td>
        </tr>
      </table>
    </FORM>
    </body>
    </html>
    
    
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...