Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Membuat Form Login, simpan dengan nama index.

html
<!DOCTYPE html>
<html>
<head>
<title>Membuat Form Login</title>
</head>
<body>
<center>
<form method="POST" action="login.php">
<h3>Form Login</h3>
<table>
<tr>
<td>
Username :
</td>
<td>
<input type="text" name="username">
</td>
</tr>
<tr>
<td>
Password :
</td>
<td>
<input type="password" name="password">
</td>
</tr>
<tr>
<td>
<input type="submit" name="kirim">
</td>
<td>
<input type="reset" name="batal" value="Batal">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>

Membuat Koneksi ke database simpan dengan nama koneksi.php


<?php
mysql_connect("localhost","root","");
mysql_select_db("spk_db");
?>

You might also like