Close
2012. Created by Shaefautodidact

Selasa, November 15, 2011

Tips Membuat Form

Berikut ini sedikit contoh script untuk membuat form yang dapat memasukan suatu data dalam tabel:

<html>
<head><title>judul</title>
<script language="javascript" src="hapus.js"></script>
<script language="javascript" src="edit.js"></script>
</head>
<body>

<form method="post" action="?page=halaman_dituju">
<table border="0" align="center" width="350" cellpadding="2">
<tr>
<td height="40" align="center" colspan="3">input</td>
</tr>
<tr>
<td width="200">Kode</td>
<td width="10">:</td>
<td width="190"><input type="text" name="sesuaikan dengan tabel" maxlength="6" /></td>
</tr>

<tr>
<td width="200">Nama Pelanggan</td>
<td width="10">:</td>
<td width="190"><input type="text" name="sesuaikan dengan tabel" /></td>
</tr>
<tr>
<td width="200" valign="top">Alamat</td>
<td width="10" valign="top">:</td>
<td width="190"><textarea name="alamat" cols="16" rows="3"></textarea></td>
</tr>
<tr>
<td>.....</td>
<td>.....</td>
<td>.....</td>
</tr>
<tr>
<td width="200" colspan="2"></td>
<td width="190"><input type="submit" name="submit" value="Save" />&nbsp;&nbsp;<input type="reset" name="reset" value="Batal" /></td>
</tr>
</table>
</form>
<? require "koneksi.php" ?>
<table width="1330" align="center" border="1" cellpadding="2">
<tr style="font-size:13px">
<td>........</td>
</tr>
<? tampil data <?
</table>

semoga berhasil...

0 Respons:

emoticon emoticon emoticon emoticon emoticon emoticon emoticon emoticon emoticon emoticon
:1: :2: :3: :4: :5: :6: :7: :8: :9: :10:
emoticon emoticon emoticon emoticon emoticon emoticon emoticon emoticon emoticon emoticon
:11: :12: :13: :14: :15: :16: :17: :18: :19: :20:
Untuk memasukan icon² di atas, cukup memasukan kode dibawah icon tersebut misal:
:4:
ke dalam frame komentar di bawah ini.
Terimakasih, Selamat berkomentar

Berikan Saran dan Komentar Anda

Mengenai Tulisan "Tips Membuat Form"