I thought others might find this tip useful too. I just started using gravity forms to collect customer support requests and I often need to know the user's IP address and browser user agent string to help in troubleshooting. Those are easy enough to insert into a hidden field but I wanted to take it further to streamline some of the steps I usually take even more.
So instead of just inserting {ip} in a hidden field, I put this:
http://www.maxmind.com/app/locate_ip?ips={ip}
That creates a URL I can just click to use MaxMind's geo IP lookup. So besides just the IP I can get an approximate geographical location and usually some info about their ISP.
Here's the question part. I'd like to to the same thing with the user agent string and send it over to http://useragentstring.com, which does a nice breakdown of browser features. The problem is, if I do something like this:
http://useragentstring.com/index.php?Analyze={user_agent}
it doesn't work because there are spaces in the string. I'm assuming this could be done with a hook but I could use a pointer in the right direction. Thanks.