Determining a user's location
<p>I have a website that needs to display display content that is dependent upon the user's location. I only need to specify it by state. I would like to use PHP to determine a user's current location.</p>

<p>Code:</p>

<pre><code>&lt;?php

    // code to determine state 

    $state = // state

    if ($state == //state) {

    }

?&gt;
</code></pre>
