28 lines
953 B
PHP
28 lines
953 B
PHP
<?php
|
|
if(array_key_exists("type",$_GET)) {
|
|
include "number.php";
|
|
die();
|
|
}
|
|
?>
|
|
<html>
|
|
<head>
|
|
<title>Number - info for numbers.</title>
|
|
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
|
|
</head>
|
|
<body><div class="container">
|
|
<h1>Number</h1>
|
|
<p>Get info on a number:</p>
|
|
<form action="./" method="GET">
|
|
<div type="form-group">
|
|
<p>Label Type:</p>
|
|
<div type="form-check"><input class="form-check-input" id="type-dec" type="radio" name="type" value="dec"><label for="type-dec">Decimal</label></div>
|
|
<div type="form-check"><input class="form-check-input" id="type-hex" type="radio" name="type" value="hex"><label for="type-dec">Hexadecimal</label></div>
|
|
</div>
|
|
<div type="form-group">
|
|
<label for="number">Number: </label><input class="form-control" type="text" name="number" id="number">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Check it out!</button>
|
|
</form>
|
|
</div></body>
|
|
</html>
|