Skip to content

Instantly share code, notes, and snippets.

@ixn
Created October 3, 2014 00:46
Show Gist options
  • Select an option

  • Save ixn/e9aa9cb23120ca9f2ad7 to your computer and use it in GitHub Desktop.

Select an option

Save ixn/e9aa9cb23120ca9f2ad7 to your computer and use it in GitHub Desktop.
html kalkulator
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>evhttp_server_test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<!-- This example create a webpage asking for a username and a password then send it to a specified address. -->
<form id="contact" method="post" action="http://127.0.0.1:8080">
<fieldset><legend>Kalkulator</legend>
<center>
<p>
<label for="nom">Nama :</label>
<input type="text" id="nama" name="nama" value="" tabindex="1" />
</p>
<p>
<label for="nom">Angka 1 :</label>
<input type="text" id="angka1" name="angka1" value="" tabindex="1" />
</p>
<p>
<label for="nom">Angka 2 :</label>
<input type="text" id="angka2" name="angka2" value="" tabindex="1" />
</p>
<p>
<input type="radio" id="operator" name="operator" value="tambah" checked="checked"> +
<input type="radio" id="operator" name="operator" value="kurang"> -
<input type="radio" id="operator" name="operator" value="kali"> x
<input type="radio" id="operator" name="operator" value="bagi"> /
</p>
</center>
</fieldset>
<div style="text-align:center;"><br><input type="submit" class="input_submit" value="Hitung" /></div>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment