Guestbook with Files Operation Not DB

Contoh pembuatan buku tamu tanpa database, menggunakan metode form dengan teknik file processing.
Buat file dengan nama bukutamu.php



";
//---------------------
echo"

";
echo"NAMA : ";
echo"

";
echo"ALAMAT : ";
echo"

";
echo"NO.HP : ";
//----------------------
echo"

"."";
echo"&nbsp ";
echo"

";
/*************************************/
echo"

"."KLIK UNTUK MELIHAT BUKU TAMU";
?>


Buat file Simpan.php
".$alamat."
".$hp."
"."-----------------------------------------------"."
"."\n");
fclose($fp);

echo"Data Telah Disimpan";


Buat file View.php

echo"

DATA BUKU TAMU

";
echo"
";

$fp=fopen("tamu.txt","r");
while(!feof($fp)){
$baris=fgets($fp,80);
echo $baris;
}
fclose($fp);
?>



Share on Google Plus

About Elmirakom

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment