View Single Post
Old 05-15-2013, 01:59 AM  
PornMD
Mainstream Businessman
 
PornMD's Avatar
 
Industry Role:
Join Date: Jan 2007
Location: San Diego
Posts: 9,291
Quick question about Javascript without SSI that one of you may have a quick answer for

I'm trying to help someone be able to capture a visitor's IP address hidden in an order form without the ability to use server-side includes (it's a hosted form and the limitations seem to prevent SSI or languages like PHP). I found a nice short JavaScript code that returns IP without SSI:

Code:
<script type="text/javascript" src="http://l2.io/ip.js"></script>
The problem is that putting the code in the value= winds up displaying the code rather than the IP the code would normally return.

Is there ANY way to put in code that will work inside form input value quotes to make the input value the visitor's IP in this case?
__________________
Want to crush it in mainstream with Facebook ads? Hit me up.
PornMD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote