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

Demo

HTML

<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>
  </div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>

Postcode Result

Enter an australian postcode above, usually 4 digits.

Other Items in php
Page Views

This page has been viewed 133 times.

Search Code
Search Code by entering your search text above.
Welcome

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.

❤👩‍💻🕹