Koneksi ke database mysql dengan PHP
Form <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Form Isi Data</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="kelas-simpan-data.php">
<table width="282" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="37%" scope="col">Nama </th>
<th width="63%" scope="col">
<div align="left">
<input type="text" name="nama" id="nama" />
</div>
</th>
</tr>
<tr>
<td>Kelas</td>
<td>
<input type="text" name="kelas" id="kelas" />
</td>
</tr>
<tr>
<td>No Telpon </td>
<td>
<input type="text" name="notelpon" id="notelpon" />
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="simpan" id="simpan" value="Simpan" />
<input type="reset" name="batal" id="batal" value="Batal" />
</td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
</body>
</html>