Listing web




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<form action="ifkondisi.php" method="posti">
masukan sebuah bilagan bulat antara 1 sampai 10:
<imput type="name="angka">
<imput type="submit">
</form>

</body>
</html>
Foun
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<?php
$angka=$_post["angha"];
if ($angka <1 || $angka>10) {
echo "anda masukan bilagan $angka.<br/>";
echo"error:bilagan harus"," dalam bilagan 1 sampai 10.";
exit ();
}
echo " bilangan yang anda masuk adalah $angka";
?>

</body>

</html>

Komentar