return a state name from an australian postcode

this will return an australian state code based on the postcode, so you can enter a valid postcode and see which state it belongs too. e.g: 2000 should return NSW


<form method="post">
  <div class="form-group">
    <label for="exampleInputEmail1">Enter Postcode</label>
    <input type="postcode" name="postcode" class="form-control" id="postcode" aria-describedby="postcodeHelp" placeholder="Enter postcode">
    <small id="postcodeHelp" class="form-text text-muted">Enter an australian postcode above, usually 4 digits.</small>
  <button type="submit" class="btn btn-primary">Submit</button>

Postcode Result

Enter an australian postcode above, usually 4 digits.

Other Items in php
Page Views

This page has been viewed 249 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
All of humanity's problems stem from man's inability to sit quietly in a room alone, wrote Blaise Pascal.