I am new in PHP and i would like to search cities that are located within a certain number of miles?
For. e.g.
When people sign up, they will register will their physical address. When someone is searching for a member they will search by city and Search functionality will be based on distance away.
My Html Code
<form method="get" id="sul-searchform" action="" ?>">
<div class="frmSearch">
<input type="text" id="search-box" name="as" placeholder="City, state or zip" />
<label>Select a distance in miles:</label>
<select name="distance">
<option>5</option>
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<input type="submit" class="submit" name="submit" id="sul-searchsubmit" value="Search Member" />
<div id="suggesstion-box"></div>
</div>
</form>
I want same like this click here
i do not have any idea how to do this , does anyone know about it then please share me code with steps by steps?