# data[].attributes.body
<html>
<body>
<center>
<form method="post">
<table>
<tr>
<td>
Masukkan Nombor Pertama: <input type="number" name="nombor1" /><br><br>
</td>
<td>
Masukkan Nombor Kedua:<input type="number" name="nombor2" /><br><br>
</td>
</tr>
</table>
<input  type="submit" name="Tambah" value="Add">
</form>
<?php
if(isset($_POST['Tambah']))
{
$Nombor1 = $_POST['nombor1'];
$Nombor1 = $_POST['nombor1'];
$Nombor2 = $_POST['nombor2'];
$Hasil =  $Nombor1+$Nombor2;
echo "Hasil $Nombor1 + $Nombor2 is: ".$Hasil;
}
?>
</body>
</html>

# data[].attributes.body
<html>
<body>

<form method="post">

Nombor 1 :
<input type="" name="No1"/>

Nombor 2:
<input type="" name="No2"/>

<br>
<input type="submit"name="submit" value="tambah">
</form>
<?php

if(isset($_POST['submit']))
{
$No1=$_POST['No1'];
$No2=$_POST['No2'];
$hasil=$No1 + $No2;

echo "Jawapan:".$hasil;
}
?>
</body>
</html>

# data[].attributes.body
<html>
<body>
<form method="post">
<table>
<tr>
<td>Nomber1</td>
<td><input type="no1" name="nomber1"></td>
</tr>
<tr>
<td>Nomber2</td>
<td><input type="no2" name="nomber2"></td>
</tr>
</table>
<input type="submit" name="Add" value="Add">
</form>
<?php
if (isset($_POST['Add']))
{
$no1=$_POST['nomber1'];
$no2=$_POST['nomber2'];
$hasil=$no1+$no2;

echo"Jawapan: = $hasil";
}
?>
</body>
</html>

# data[].attributes.body
<html>
<body>

<form method="post">
<table>

<tr>
<td>
NO 1: <input type="number" name="no1" /><br><br>
</td>

<td>
NO 2:<input type="number" name="no2" /><br><br>
</td>
</tr>
</table>

<input  type="submit" name="ADD" value="TAMBAH">
</form>

<?php
if(isset($_POST['ADD']))
{
$No1 = $_POST['no1'];
$No2 = $_POST['no2'];
$Hasil =  $No1+$No2;
echo "Jawapan $No1 + $No2 ialah: ".$Hasil;
}
?>

</body>
</html>

# data[].attributes.body
<html>
<body>

<form method="post">

<table>
<tr>
<td>Nombor 1
<td>:
<td><input type="" name="number1" />
<td>Nombor 2
<td>:
<td><input type="" name="number2" />
</tr>
</table>

<input  type="submit" name="submit" value="Tambah">
</form>
<?php
if(isset($_POST['submit']))
{
$number1= $_POST['number1'];
$number2= $_POST['number2'];
$hasil =  $number1 + $number2;
echo "Hasil Tambah $number1 Dan $number2 Ialah: ".$hasil;
}
?>
</body>
</html>

# data[].attributes.body
<html>
<body>
<div aliogn="left">
<form method="post">
<table>
<tr>
<td>
NO 1: <input type="text" name="nombor1" /><br><br>
</td>
<td>
NO 2:<input type="text" name="nombor2" /><br><br>
</td>
</tr>
</table>
<input  type="submit" name="Tambah" value="Tambah">
</form>
<?php
if(isset($_POST['Tambah']))
{
$No1 = $_POST['nombor1'];
$No2 = $_POST['nombor2'];
$Hasil =  $No1+$No2;
echo "Jawapan : ".$Hasil;
}
?>
</body>
</html>

OUTPUT :

# data[].attributes.body
<html>
<body>
<center>
<form method="post">
<table>
<tr>
<td>
Masukkan Nombor Pertama: <input type="number" name="nombor1" /><br><br>
</td>
<td>
Masukkan Nombor Kedua:<input type="number" name="nombor2" /><br><br>
</td>
</tr>
</table>
<input  type="submit" name="Tambah" value="Add">
</form>
<?php
if(isset($_POST['Tambah']))
{
$Nombor1 = $_POST['nombor1'];
$Nombor1 = $_POST['nombor1'];
$Nombor2 = $_POST['nombor2'];
$Hasil =  $Nombor1+$Nombor2;
echo "Hasil $Nombor1 + $Nombor2 is: ".$Hasil;
}
?>
</body>
</html>

# data[].attributes.body
<html>
<body>
<form method="post">
<table>
<tr>
<td>No 1
<td>:
<td><input type="" name="n1" />
<td>No 2
<td>:
<td><input type="" name="n2" />
</tr>
</table>
<input  type="submit" name="submit" value="Jawapan">
</form>
<?php
if(isset($_POST['submit']))
{
$n1= $_POST['n1'];
$n2= $_POST['n2'];
$hasil =  $n1 + $n2;
echo "Hasil Tambah $n1 Dan $n2 Ialah: ".$hasil;
}
?>
</body>
</html>

# data[].attributes.body
<html>
<head>
</head>
<body>

<form method="post">
<table>
<tr>
<td>No1 :<br></td>
<td><input type="number" name="nom1"  /><br></td>
<td>
No2 :<br></td>
<td><input type="number" name="nom2"  /><br></td>
</tr></br>
</table>
<input type="submit" name="tambah" value="Add">
</form>

<?php
if (isset($_POST['tambah']))
{
$Nombor1 = $_POST['nom1'];
$Nombor2 = $_POST['nom2'];
$hasil = $Nombor1+$Nombor2;
echo "Hasil $Nombor1 dan $Nombor2 ialah :".$hasil;
}
?>

</body>
</html>

# data[].attributes.body
<html>
<body>
<center>
<form method="post">
<table>
<tr>
<td>
Masukkan Nombor Pertama: <input type="number" name="nombor1" /><br><br>
</td>
</tr>
<tr>
<td>
Masukkan Nombor Kedua:<input type="number" name="nombor2" /><br><br>
</td>
</tr>
</table>
<input  type="submit" name="Tambah" value="tambah">
</form>
<?php
if(isset($_POST['Tambah']))
{
$Nombor1 = $_POST['nombor1'];
$Nombor1 = $_POST['nombor1'];
$Nombor2 = $_POST['nombor2'];
$Hasil =  $Nombor1+$Nombor2;
echo "Hasil $Nombor1 + $Nombor2 ialah: ".$Hasil;
}
?>
</body>
</html>

# data[].attributes.body
<html>
<body>

<form method="post">
<table>

<tr>
<td>
NO 1: <input type="number" name="no1" /><br><br>
</td>

<td>
NO 2:<input type="number" name="no2" /><br><br>
</td>

<td>
<input  type="submit" name="ADD" value="hasil">
</td>
</tr>
</table>

</form>

<?php
if(isset($_POST['ADD']))
{
$No1 = $_POST['no1'];
$No1 = $_POST['no1'];
$No2 = $_POST['no2'];
$Hasil =  $No1+$No2;
echo "Jawapan: ".$Hasil;
}
?>

</body>
</html>

# data[].attributes.body
<html>
<head>
</head>
<body>

<form method="post">
<table>
<tr>
<td>No1 :<br></td>
<td><input type="number" name="nom1"  /><br></td>
<td>No2 :<br></td>
<td><input type="number" name="nom2"  /><br></td>
</tr></br>
</table>
<input type="submit" name="tambah" value="Add">
</form>

<?php
if (isset($_POST['tambah']))
{
$Nombor1 = $_POST['nom1'];
$Nombor2 = $_POST['nom2'];
$hasil = $Nombor1+$Nombor2;
echo "Hasil $Nombor1 dan $Nombor2 ialah :".$hasil;
}
?>

</body>
</html>