Log Masuk

You might also like

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

<html>

<head><title>Write to a text file</title></head>


<body>
<hl>Selamat Datang</hl>
<hl>Ke Sekolah Menengah Bistari Jaya</hl>
<form method='POST'>
<p>Masukkan Nama Anda
<input type = 'text' name='namapengguna'></p>
<input type = 'submit' name='Submit' value='Masuk'>
</form>
<?php
if (isset($_POST["Submit"]))
{
$f = fopen("LogMasuk.txt", "a");
$nama = $_POST['namapengguna'];
$tarikh = date('d/m/y h:i:s a', time());
fwrite($f, $log);
fclose($f);
}
?>
</body>
</html>

You might also like