SHARE
TWEET

ayis

a guest Oct 21st, 2019 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <form action="aksi_edit.php" method="POST">
  2.    <h3><b>Form Edit Barang</b></h3>
  3.    
  4.     <table>
  5.     <tr>
  6.         <td width="150">Nama</td>
  7.         <td>
  8.         <input type="hidden" name="id" value="<?php echo $dbrg->id ?>">
  9.         <input type="text" name="nama" placeholder="nama" value="<?php echo $dbrg->nama; ?>">
  10.         </td>
  11.     </tr>
  12.  
  13.     <tr>
  14.         <td width="150">Harga</td>
  15.         <td>
  16.         <input type="text" name="harga" placeholder="harga" value="<?php echo $dbrg->harga; ?>">
  17.     </td>
  18.     </tr>
  19.  
  20.     <tr>
  21.         <td width="150">Stock</td>
  22.         <td>
  23.         <input type="number" name="stock" placeholder="Stock" value="<?php echo $dbrg->stock; ?>">
  24.     </td>
  25.     </tr>
  26.  
  27.     <tr>
  28.         <td width="150">Ukuran</td>
  29.         <td>
  30.         <input type="number" name="ukuran" placeholder="Ukuran" value="<?php echo $dbrg->ukuran_id; ?>">
  31.     </td>
  32.     </tr>
  33.  
  34.     <tr>
  35.         <td width="150">Kategori</td>
  36.         <td>
  37.         <input type="number" name="kategori" placeholder="Kategori" value="<?php echo $dbrg->kategori_id; ?>">
  38.     </td>
  39.     </tr>
  40.  
  41.     <tr>
  42.         <td width="150">Warna</td>
  43.         <td>
  44.         <input type="text" name="warna" placeholder="Warna" value="<?php echo $dbrg->warna; ?>">
  45.     </td>
  46.     </tr>
  47.  
  48.     <tr>
  49.         <td width="150">Deskripsi</td>
  50.         <td>
  51.         <textarea name="deskripsi" rows="4" id="" cols="30" rows="10"> <?php echo $dbrg->deskripsi; ?></textarea>
  52.     </td>
  53.     </tr>
  54.  
  55.     <tr>
  56.         <td width="150">Info</td>
  57.         <td>
  58.         <textarea name="info" rows="4" id="" cols="30" rows="10" ><?php echo $dbrg->info; ?></textarea>
  59.     </td>
  60.     </tr>
  61. </table>
  62.  <a href="aksi_edit.php?id=<?php echo $data->id;
  63.                ?>">
  64.         <button>
  65.                Update  
  66.         </button>
  67.     </a>
  68. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top