chestertb
10-10-2003, 07:52 AM
Hi All,
I am so unfamiliar with PHP that even the "PHP in 24 Hours" book I bought is a litle overwhelming. No need to "sell" me on the benefits... sooner or later I will get my head around the language but in the meantime, I was hoping someone can help with a tiny problem.
I'd like to get the visitor's IP address (which I'm sure PHP can do), and somehow get that value to a JavaScript variable.
The ideal would be to be able to call a PHP function from within a JavaScript function and have that function simply return the IP address... but I am totally open to suggestions.
Help really appreciated.
Thanks
IB
I am so unfamiliar with PHP that even the "PHP in 24 Hours" book I bought is a litle overwhelming. No need to "sell" me on the benefits... sooner or later I will get my head around the language but in the meantime, I was hoping someone can help with a tiny problem.
I'd like to get the visitor's IP address (which I'm sure PHP can do), and somehow get that value to a JavaScript variable.
The ideal would be to be able to call a PHP function from within a JavaScript function and have that function simply return the IP address... but I am totally open to suggestions.
Help really appreciated.
Thanks
IB