Set cookie with IP and send to new page
<p>I'm trying to find a way to set a cookie that sets a user's IP and passes it to a second page displaying that IP. I'm probably missing something very small, but I've tried a few methods.</p>

<pre><code>setcookie('user_ip', $_POST['user_ip']);
</code></pre>

<p>I should be able to use this function as well to find the IP, or is there another method that's easier to use?</p>

<pre><code>server($REMOTE_ADDR);
</code></pre>

<p>I keep getting errors with whatever method I use. I just know I'm missing something small.</p>
