postal-codes/index.php

<?php include '../config.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Postal codes</title>

	<?php include DOCROOT.'header.php' ?>
	<script src="script.js"></script>
</head>
<body>

	<h1>Postal codes</h1>

	<p>Just a simple test integration with the <a href="http://developer.bring.com/learn/postalcode/apireference.html">Bring API</a>.

	<form id="form" action="check.php" method="get">
		<p>
			<select name="country">
				<option value="NO" selected>Norway</option>
				<option value="DK">Denmark</option>
				<option value="SE">Sweden</option>
				<option value="FI">Finland</option>
				<option value="NL">Netherlands</option>
				<option value="DE">Germany</option>
				<option value="US">United States</option>
				<option value="BE">Belgium</option>
			</select>


			<input name="pnr" placeholder="Postal code">
			<input type="submit" value="Check">
		</p>
	</form>

	<output id="output"></output>


	<?php $article = NULL; include DOCROOT.'footer.php'; ?>

</body>
</html>