Sponsor

Thursday, 2 August 2012

contoh script masukan form,php

Skrip masukanform.php

<html>
<head>
<meta  http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>From Masukan</title>
</head>
<body>
<form   id="form1"   name="form1"  method="post"   action="masukanform.php" target="_self">
<table width="342"  border="1">
<tr>
<td colspan="3"><strong>Masukan Data Anggota</strong> </td>
</tr>
<tr>
<td width="95">ID Anggota </td>
<td width="3">:</td>
<td    width="222"><input       name="txtid"      type="text"      id="txtid"     size="10" maxlength="6" /></td>
</tr>
<tr>
<td>Nama</td>
<td>:</td>
<td><input          name="txtnama"          type="text"         id="txtnama"          size="35" maxlength="35" /></td>
</tr>
<tr>
<td>Alamat</td>
<td>:</td>
<td><input        name="txtalamat"          type="text"       id="txtalamat"         size="35" maxlength="60" /></td>
</tr>
<tr>
<td>Kelamin</td>
<td>:</td>
<td><label>
<input name="rbgender" type="radio" value="P"  checked/> Pria
<input name="rbgender" type="radio" value="W"  checked/> Wanita</label></td>
</tr>
<tr>
<td>&nbsp;</td>



<td>&nbsp;</td>
<td><label>
<input type="submit" name="Submit" value="Simpan" />
</label></td>
</tr>
</table>
</form>
</body>
</html>

No comments: