Make Calculator from PHP script
January 26th, 2012
0 Comments
Below is a sample php code addition. May be useful:
<?php
if ($_POST['submit'])
{
$bil1 = $_POST['bil1'];
$bil2 = $_POST['bil2'];
$hasil = $bil1 + $bil2;
echo "Hasil penjumlahannya adalah ".$hasil;
}
else
{
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table>
<tr><td>Bil Pertama</td><td>:</td><td><input type="text"...



