Hello Travis, within your form you want something like :
<input type="hidden" name="ip" value="<?php echo $REMOTE_ADDR; ?>">
And in your form processor you will have $ip with the submitters ip address. For information on predefined variables, such as REMOTE_ADDR, go here :
http://www.php.net/manual/en/language.variables.predefined.php
The key here is REMOTE_ADDR as it will produce the users ip address. The user could tinker with that hidden form element so you may want to call REMOTE_ADDR directly within your form processor, it should work. Now if you have register_globals OFF then you'll need to get the ip like this : getenv("REMOTE_ADDR"); (as opposed to just sticking a $ in front of it as shown in hidden input example above) and you can read about register_globals here :
http://www.php.net/manual/en/configuration.php#ini.register-globals